objectdraw
Interface Resizable2DInterface

All Superinterfaces:
Drawable2DInterface, DrawableInterface
All Known Implementing Classes:
Arc, FilledArc, FilledOval, FilledRect, FilledRoundedRect, FramedArc, FramedOval, FramedRect, FramedRoundedRect, Oval, Rect, Rectangular, RoundedRect, 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.1 released February 2005

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

setHeight

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

Parameters:
height - the new height of the bounding rectangle

setSize

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

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

Parameters:
width - the new width of the bounding rectangle