edu.mit.sketch.uml
Class UMLStroke

java.lang.Object
  |
  +--edu.mit.sketch.uml.UMLStroke
All Implemented Interfaces:
Cloneable, Serializable

public class UMLStroke
extends Object
implements Serializable, Cloneable

See Also:
Serialized Form

Constructor Summary
UMLStroke(int startX, int startY)
           
UMLStroke(Point startP)
           
UMLStroke(Point startP, UMLProgram p)
           
 
Method Summary
 void addPoint(int x, int y)
           
 void addPoint(Point p)
           
 Object clone()
           
 void compute()
           
 void computeShape()
           
 Ellipse getEllipse()
           
 Vector getEndPointVector()
           
 Classifier getEndPointVectorClassifier()
           
 double getLength()
           
 Line getLine()
           
 Vector getMiddlePointVector()
           
 Classifier getMiddlePointVectorClassifier()
           
 int getNumPoints()
           
 Vector getPointVector()
           
 Classifier getPointVectorClassifier()
           
 Polygon getPoly(Vector pv)
           
 Polygon getPolygon()
           
 boolean getRecognized()
           
 Vector getStartPointVector()
           
 Classifier getStartPointVectorClassifier()
           
 boolean isDash()
           
 boolean isDrawable()
           
 boolean isEllipse()
           
 boolean isLine()
           
 boolean isPoint()
           
 boolean isStartEndSame()
           
 void paint(Graphics g)
           
 void printPoints()
           
 void resetOriginalPoints()
           
 void rotatePoints(double angle)
           
 void setDragging(boolean b)
           
 void setDrawable(boolean d)
           
 void setRecognized(boolean r)
           
 void shiftPoints(int shift_x, int shift_y)
           
 void translatePoints(Point end, double total_distance, int shift_x, int shift_y)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UMLStroke

public UMLStroke(Point startP,
                 UMLProgram p)

UMLStroke

public UMLStroke(int startX,
                 int startY)

UMLStroke

public UMLStroke(Point startP)
Method Detail

paint

public void paint(Graphics g)

getNumPoints

public int getNumPoints()

setDragging

public void setDragging(boolean b)

shiftPoints

public void shiftPoints(int shift_x,
                        int shift_y)

resetOriginalPoints

public void resetOriginalPoints()

translatePoints

public void translatePoints(Point end,
                            double total_distance,
                            int shift_x,
                            int shift_y)

rotatePoints

public void rotatePoints(double angle)

setDrawable

public void setDrawable(boolean d)

isDrawable

public boolean isDrawable()

isPoint

public boolean isPoint()

isDash

public boolean isDash()

isLine

public boolean isLine()

isEllipse

public boolean isEllipse()

getLine

public Line getLine()

getEllipse

public Ellipse getEllipse()

getPolygon

public Polygon getPolygon()

getStartPointVector

public Vector getStartPointVector()

getMiddlePointVector

public Vector getMiddlePointVector()

getEndPointVector

public Vector getEndPointVector()

getPointVectorClassifier

public Classifier getPointVectorClassifier()

getStartPointVectorClassifier

public Classifier getStartPointVectorClassifier()

getEndPointVectorClassifier

public Classifier getEndPointVectorClassifier()

getMiddlePointVectorClassifier

public Classifier getMiddlePointVectorClassifier()

clone

public Object clone()
Overrides:
clone in class Object

compute

public void compute()

getPoly

public Polygon getPoly(Vector pv)

getPointVector

public Vector getPointVector()

getLength

public double getLength()

addPoint

public void addPoint(Point p)

addPoint

public void addPoint(int x,
                     int y)

printPoints

public void printPoints()

computeShape

public void computeShape()

isStartEndSame

public boolean isStartEndSame()

setRecognized

public void setRecognized(boolean r)

getRecognized

public boolean getRecognized()