wheels
Interface Sizeable

All Known Implementing Classes:
Image, RectangularShape

public interface Sizeable

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

Author:
Sanders & van Dam. Object-Oriented Programming in Java.

Method Summary
 int getHeight()
          Returns the object's height.
 Dimension getSize()
          Returns the object's size as an AWT Dimension.
 int getWidth()
          Returns the object's width.
 void setSize(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

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


setSize

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


getSize

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


getWidth

public int getWidth()
Returns the object's width.


getHeight

public int getHeight()
Returns the object's height.