wheelsunh
Interface Sizeable

All Known Implementing Classes:
ConversationBubble, Ellipse, FilterInputBox, Image, InputBox, IntInputBox, Line, Rectangle, RectangularShape, RoundedRectangle, TextBox, TextInputBox

public interface Sizeable

Interface for objects that can have their size set and queried.


Method Summary
 int getHeight()
          Returns the object's height.
 java.awt.Dimension getSize()
          Returns the object's size as an AWT Dimension.
 int getWidth()
          Returns the object's width.
 void setSize(java.awt.Dimension d)
          Sets the object's size to the given Dimension.
 void setSize(int width, int height)
          Sets the object's size to the given dimensions.
 

Method Detail

setSize

void setSize(int width,
             int height)
Sets the object's size to the given dimensions.


setSize

void setSize(java.awt.Dimension d)
Sets the object's size to the given Dimension.


getSize

java.awt.Dimension getSize()
Returns the object's size as an AWT Dimension.


getWidth

int getWidth()
Returns the object's width.


getHeight

int getHeight()
Returns the object's height.