edu.mit.sketch.uml
Class UMLObject
java.lang.Object
|
+--edu.mit.sketch.uml.Sketchable
|
+--edu.mit.sketch.uml.UMLClass
|
+--edu.mit.sketch.uml.UMLObject
- All Implemented Interfaces:
- Cloneable, Serializable
- public class UMLObject
- extends UMLClass
- implements Serializable, Cloneable
- See Also:
- Serialized Form
| Methods inherited from class edu.mit.sketch.uml.UMLClass |
addMethod, addProperty, clone, getMethod, getMethods, getMethodsVector, getName, getProperties, getPropertiesVector, getProperty, getX, getY, hideFrame, methodSize, propertySize, setMethods, setName, setProperties, showFrame |
UMLObject
public UMLObject(String n,
int x,
int y,
int w,
int h)
addText
public void addText(Vector strokes)
drawText
public void drawText(Graphics g)
moveText
public void moveText(int x,
int y)
deleteProperty
public void deleteProperty(UMLProperty p)
- Overrides:
deleteProperty in class UMLClass
deleteMethod
public void deleteMethod(UMLMethod m)
- Overrides:
deleteMethod in class UMLClass
setX
public void setX(int x)
- Overrides:
setX in class UMLClass
setY
public void setY(int y)
- Overrides:
setY in class UMLClass
setSize
public void setSize(int x,
int y,
int w,
int h)
setHeight
public void setHeight(int h)
getHeight
public int getHeight()
setWidth
public void setWidth(int w)
getWidth
public int getWidth()
nearby
public boolean nearby(Point p,
boolean drawOrig)
contains
public boolean contains(Rectangle r)
withinObject
public boolean withinObject(int x,
int y,
boolean drawOrig)
updateWidth
public void updateWidth(int fontSize)
updateHeight
public void updateHeight(int fontSize)
getType
public String getType()
paintDrawn
public Dimension paintDrawn(Graphics g)
paintInterpreted
public Dimension paintInterpreted(Graphics g)