edu.mit.sketch.uml
Class Sketchable

java.lang.Object
  |
  +--edu.mit.sketch.uml.Sketchable
Direct Known Subclasses:
UMLClass, UMLLink

public abstract class Sketchable
extends Object


Constructor Summary
Sketchable()
           
 
Method Summary
 void addStroke(UMLStroke s)
           
 Rectangle getDrawnBounds()
           
 UMLStroke getStroke(int s)
           
 Vector getStrokes()
           
 int numStrokes()
           
 Dimension paint(boolean drawOrig, Graphics g)
           
protected  Dimension paintStrokes(Graphics g)
           
 void setStrokes(Vector s)
           
 void setStrokesUndrawable()
           
 void shiftSketchPoints(int x, int y)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Sketchable

public Sketchable()
Method Detail

addStroke

public void addStroke(UMLStroke s)

setStrokes

public void setStrokes(Vector s)

paintStrokes

protected Dimension paintStrokes(Graphics g)

paint

public Dimension paint(boolean drawOrig,
                       Graphics g)

numStrokes

public int numStrokes()

getStroke

public UMLStroke getStroke(int s)

getStrokes

public Vector getStrokes()

setStrokesUndrawable

public void setStrokesUndrawable()

shiftSketchPoints

public void shiftSketchPoints(int x,
                              int y)

getDrawnBounds

public Rectangle getDrawnBounds()