|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--objectdraw.Drawable | +--objectdraw.Drawable2D | +--objectdraw.Resizable2D
Resizable2D is the implementation of the Resizable2D interface which defines mutator methods for two dimensional, drawable objects.
Fields inherited from class objectdraw.Drawable |
canvas, canvasContent, color, DEBUGGING, shown |
Constructor Summary | |
Resizable2D()
|
Method Summary | |
void |
move(double dx,
double dy)
Moves the object within the canvas by the amount specified in the x and y directions. |
void |
moveTo(Location point)
Moves the object within the canvas to the specified point. |
Methods inherited from class objectdraw.Drawable2D |
contains, draw, getHeight, getLocation, getX, getY, overlaps |
Methods inherited from class objectdraw.Drawable |
addToCanvas, getColor, hide, isHidden, moveTo, removeFromCanvas, sendBackward, sendForward, sendToBack, sendToFront, setColor, setStateChanged, show |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface objectdraw.Resizable2DInterface |
setBounds, setHeight, setWidth |
Methods inherited from interface objectdraw.Drawable2DInterface |
getBounds, getHeight, getLocation, getWidth, getX, getY, overlaps |
Methods inherited from interface objectdraw.DrawableInterface |
addToCanvas, contains, draw, getColor, hide, isHidden, moveTo, removeFromCanvas, sendBackward, sendForward, sendToBack, sendToFront, setColor, show |
Constructor Detail |
public Resizable2D()
Method Detail |
public void moveTo(Location point)
moveTo
in interface DrawableInterface
moveTo
in class Drawable
point
- the coordinates of the upper left corner of the
object's new bounding boxpublic void move(double dx, double dy)
move
in interface DrawableInterface
move
in class Drawable
dx
- the amount to move in the x-directiondy
- the amount to move in the y-direction
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |