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

Fields inherited from class edu.mit.sketch.uml.UMLClass
locationX, locationY, methods, minHeight, minWidth, name, properties
 
Constructor Summary
UMLObject(String n, int x, int y, int w, int h)
           
 
Method Summary
 void addText(Vector strokes)
           
 boolean contains(Rectangle r)
           
 void deleteMethod(UMLMethod m)
           
 void deleteProperty(UMLProperty p)
           
 void drawText(Graphics g)
           
 int getHeight()
           
 String getType()
           
 int getWidth()
           
 void moveText(int x, int y)
           
 boolean nearby(Point p, boolean drawOrig)
           
 Dimension paintDrawn(Graphics g)
           
 Dimension paintInterpreted(Graphics g)
           
 void setHeight(int h)
           
 void setSize(int x, int y, int w, int h)
           
 void setWidth(int w)
           
 void setX(int x)
           
 void setY(int y)
           
 void updateHeight(int fontSize)
           
 void updateWidth(int fontSize)
           
 boolean withinObject(int x, int y, boolean drawOrig)
           
 
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
 
Methods inherited from class edu.mit.sketch.uml.Sketchable
addStroke, getDrawnBounds, getStroke, getStrokes, numStrokes, paint, paintStrokes, setStrokes, setStrokesUndrawable, shiftSketchPoints
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UMLObject

public UMLObject(String n,
                 int x,
                 int y,
                 int w,
                 int h)
Method Detail

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)