|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 | |
void |
setHeight(double height)
Sets the height of the object's bounding rectangle |
void |
setSize(double width,
double height)
Sets the width and height of the rectangle bounding the object. |
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 |
public void setSize(double width, double height)
width
- the new width of the bounding rectangleheight
- the new height of the bounding rectanglepublic void setWidth(double width)
width
- the new width of the bounding rectanglepublic void setHeight(double height)
height
- the new height of the bounding rectangle
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |