com.rolemodelsoft.drawlet
Interface Paintable

All Known Subinterfaces:
Drawing, DrawingCanvas, Figure, LineFigure, PolygonFigure
All Known Implementing Classes:
AbstractPaintable

public interface Paintable


Method Summary
 int getBottom()
          Returns the bottommost coordinate of the receiver.
 java.awt.Rectangle getBounds()
          Returns the current bounds of the receiver.
 int getHeight()
          Returns the height of the receiver.
 int getLeft()
          Returns the leftmost coordinate of the receiver.
 int getRight()
          Returns the rightmost coordinate of the receiver.
 java.awt.Dimension getSize()
          Returns the current size of the receiver.
 int getTop()
          Returns the topmost coordinate of the receiver.
 int getWidth()
          Returns the width of the receiver.
 void paint(java.awt.Graphics g)
          Paints the receiver.
 

Method Detail

getBottom

public int getBottom()
Returns the bottommost coordinate of the receiver.
Returns:
an integer representing the bottommost coordinate of the receiver

getBounds

public java.awt.Rectangle getBounds()
Returns the current bounds of the receiver.
Returns:
a Rectangle representing the current bounds

getHeight

public int getHeight()
Returns the height of the receiver.
Returns:
an integer representing the height of the receiver

getLeft

public int getLeft()
Returns the leftmost coordinate of the receiver.
Returns:
an integer representing the leftmost coordinate of the receiver

getRight

public int getRight()
Returns the rightmost coordinate of the receiver.
Returns:
an integer representing the rightmost coordinate of the receiver

getSize

public java.awt.Dimension getSize()
Returns the current size of the receiver.
Returns:
a Dimension representing the current size of the receiver
See Also:
#setSize

getTop

public int getTop()
Returns the topmost coordinate of the receiver.
Returns:
an integer representing the topmost coordinate of the receiver

getWidth

public int getWidth()
Returns the width of the receiver.
Returns:
an integer representing the width of the receiver

paint

public void paint(java.awt.Graphics g)
Paints the receiver.
Parameters:
g - the Graphics object to use for painting