public interface Resizable2DInterface
Resizable2DInterface
is the interface shared by all two dimensional object that
can be resized. This includes all the rectangles, ovals, arcs, and rounded rectangles, but
not text or turtles.
Method Summary | |
---|---|
void |
setHeight(double h)
Set the height of this object, leaving its top edge in place and stretching the bottom. |
void |
setSize(double width,
double height)
Set the width and height of this object. |
void |
setWidth(double w)
Set the width of this object, leaving its left edge in place and stretching the right. |
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 h)
h
- new heightvoid setSize(double width, double height)
width
- new widthheight
- new heightvoid setWidth(double w)
w
- new width