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
UMLStroke
public UMLStroke(Point startP,
UMLProgram p)
UMLStroke
public UMLStroke(int startX,
int startY)
UMLStroke
public UMLStroke(Point startP)
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()