objectdraw
Class Resizable2D
java.lang.Object
objectdraw.Drawable
objectdraw.Drawable2D
objectdraw.Resizable2D
- All Implemented Interfaces:
- Serializable, Drawable2DInterface, DrawableInterface
- Direct Known Subclasses:
- Rectangular, VisibleImage
abstract class Resizable2D
- extends Drawable2D
Resizable2D is the implementation of the Resizable2D interface
which defines mutator methods for two dimensional, drawable objects.
- Version:
- 1.1.1 released February 2005
Method Summary |
void |
move(double dx,
double dy)
Moves the object within the canvas in the x and y direction
by the amounts specified as parameters. |
void |
moveTo(Location point)
Moves the object within the canvas to the specified Location |
(package private) abstract void |
setBounds(Bounds b)
|
abstract void |
setHeight(double height)
|
abstract void |
setSize(double width,
double height)
|
abstract void |
setWidth(double width)
|
Methods inherited from class objectdraw.Drawable |
addToCanvas, clearCanvasContent, getCanvas, getColor, hide, isHidden, moveTo, removeFromCanvas, sendBackward, sendForward, sendToBack, sendToFront, setCanvasContent, 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.DrawableInterface |
addToCanvas, getCanvas, getColor, hide, isHidden, moveTo, removeFromCanvas, sendBackward, sendForward, sendToBack, sendToFront, setColor, show |
Resizable2D
Resizable2D()
move
public void move(double dx,
double dy)
- Description copied from interface:
DrawableInterface
- Moves the object within the canvas in the x and y direction
by the amounts specified as parameters.
- Specified by:
move
in interface DrawableInterface
- Specified by:
move
in class Drawable
- Parameters:
dx
- the amount to move in the x-direction.dy
- the amount to move in the y-direction.
moveTo
public void moveTo(Location point)
- Description copied from interface:
DrawableInterface
- Moves the object within the canvas to the specified Location
- Specified by:
moveTo
in interface DrawableInterface
- Overrides:
moveTo
in class Drawable
- Parameters:
point
- the destination for moving the object.
setBounds
abstract void setBounds(Bounds b)
setHeight
public abstract void setHeight(double height)
setSize
public abstract void setSize(double width,
double height)
setWidth
public abstract void setWidth(double width)