ballWorlds
Interface Drawable

All Known Subinterfaces:
Ball, BallDescriber, World, WorldDescriber
All Known Implementing Classes:
VisibleWorld, WorldWithManyThreads, WorldWithTwoOrThreeThreads

public interface Drawable

A Drawable2D is an object that can be drawn onto a Graphics2D object by getting its Shape and Color.

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

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.