objectdraw
Interface Resizable2DInterface

All Superinterfaces:
Drawable2DInterface, DrawableInterface
All Known Implementing Classes:
FilledArc, FilledOval, FilledRect, FilledRoundedRect, FramedArc, FramedOval, FramedRect, FramedRoundedRect, objectdraw.Rectangular, VisibleImage

public interface Resizable2DInterface
extends Drawable2DInterface

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.

Version:
1.1.2 released July 2006

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

setSize

public void setSize(double width,
                    double height)
Sets the width and height of the rectangle bounding the object.

Parameters:
width - the new width of the bounding rectangle
height - the new height of the bounding rectangle

setWidth

public void setWidth(double width)
Sets the width of the object's bounding rectangle

Parameters:
width - the new width of the bounding rectangle

setHeight

public void setHeight(double height)
Sets the height of the object's bounding rectangle

Parameters:
height - the new height of the bounding rectangle