package ballWorlds; import java.awt.Shape; import java.awt.Color; /** * 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. */ public interface Drawable { /** * Returns the Shape (which contains position and size) of this Drawable. * * @return the Shape of this Drawable. */ public Shape getShape(); /** * Returns the Color of this Drawable. * * @return the Color of this Drawable. */ public Color getColor(); }