|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Resizable2DInterface
Resizable2DInterface describes the methods available for manipulating objects on a DrawingCanvas that can be resized under program control. It extends Drawable2DInterface by defining mutator methods allowing the dimensions of the object to be changed.
Method Summary | |
---|---|
abstract void |
setHeight(double height)
Sets the height of the object's bounding rectangle |
abstract void |
setSize(double width,
double height)
Sets the width and height of the rectangle bounding the object. |
abstract void |
setWidth(double width)
Sets the width of the object's bounding rectangle |
Methods inherited from interface objectdraw.Drawable2DInterface |
---|
getHeight, getLocation, getWidth, getX, getY, overlaps |
Methods inherited from interface objectdraw.DrawableInterface |
---|
addToCanvas, contains, getCanvas, getColor, hide, isHidden, move, moveTo, moveTo, removeFromCanvas, sendBackward, sendForward, sendToBack, sendToFront, setColor, show |
Method Detail |
---|
void setHeight(double height)
height
- the new height of the bounding rectanglevoid setSize(double width, double height)
width
- the new width of the bounding rectangleheight
- the new height of the bounding rectanglevoid setWidth(double width)
width
- the new width of the bounding rectangle
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |