ballworlds.framework
Interface Drawable

All Known Implementing Classes:
Ball, World

public interface Drawable

A Drawable is an object that can be drawn onto a Graphics object, by returning its Shape and Color.

Author:
David Mutchler, Salman Azhar and others, January 2005. Modified September, 2008.

Method Summary
 Color getColor()
          Returns the Color of this Drawable.
 Shape getShape()
          Returns the Shape (which contains position and size) of this Drawable.
 

Method Detail

getShape

Shape getShape()
Returns the Shape (which contains position and size) of this Drawable.

Returns:
the Shape of this Drawable

getColor

Color getColor()
Returns the Color of this Drawable.

Returns:
the Color of this Drawable