package ballWorlds; import java.awt.geom.Point2D; /** * A BallDescriber is an object that can describe (return) its velocity, size, * and mass, in addition to its inherited (from Drawable) ability to describe * its Color and Shape. * * @author David Mutchler, Salman Azhar, Curt Clifton and others, January 2005. * Modified September 2008, September 2009. */ public interface BallDescriber extends Drawable { /** * Returns the velocity (i.e., speed in x-direction and speed in * y-direction) of this BallDescriber. * * @return the velocity (i.e., speed in x-direction and speed in * y-direction) of this BallDescriber. */ public Point2D getVelocity(); /** * Returns the mass of this BallDescriber. * * @return the mass of this BallDescriber. */ public double getMass(); /** * Returns the size of this BallDescriber. * * @return the size of this BallDescriber. */ public double getSize(); }