objectdraw
Interface Resizable2DInterface

All Superinterfaces:
Drawable2DInterface, DrawableInterface
All Known Implementing Classes:
Resizable2D

public interface Resizable2DInterface
extends Drawable2DInterface

Resizable2DInterface is an interface for objects being placed on a DrawingCanvas that defines mutator methods allowing for the dimensions of the object to be changed. It extends from Drawable2DInterface.


Method Summary
 void setBounds(Bounds b)
          Sets the rectangle's bounding rectangle.
 void setHeight(double dist)
          Sets the height of the object's bounding rectangle
 void setWidth(double dist)
          Sets the width of the object's bounding rectangle
 
Methods inherited from interface objectdraw.Drawable2DInterface
getBounds, getHeight, getLocation, getWidth, getX, getY, overlaps
 
Methods inherited from interface objectdraw.DrawableInterface
addToCanvas, contains, draw, getColor, hide, isHidden, move, moveTo, moveTo, removeFromCanvas, sendBackward, sendForward, sendToBack, sendToFront, setColor, show
 

Method Detail

setBounds

public void setBounds(Bounds b)
Sets the rectangle's bounding rectangle.
Parameters:
b - the bounding rectangle

setWidth

public void setWidth(double dist)
Sets the width of the object's bounding rectangle
Parameters:
dist - the new width

setHeight

public void setHeight(double dist)
Sets the height of the object's bounding rectangle
Parameters:
dist - the new height