demos.bounce
Class BouncingBall
java.lang.Object
cse115.graphics.AbstractGraphic
cse115.graphics.AbstractColorableGraphic
cse115.graphics.Ellipse
demos.bounce.BouncingBall
- All Implemented Interfaces:
- CenterLocatable, Colorable, ColorableGraphic, Graphic, Locatable, Rotatable, Sizeable
public class BouncingBall
- extends Ellipse
Constructor Summary |
BouncingBall()
Creates a new instance of BetterBouncingBall |
Method Summary |
void |
startBouncing()
Method to be called when the user wants the ball to start bouncing. |
void |
stopBouncing()
Method to be called when user wants the ball to stop bouncing. |
Methods inherited from class cse115.graphics.AbstractGraphic |
addMouseListener, addMouseMotionListener, contains, getBounds, getCenterLocation, getContainer, getDimension, getLocation, getMouseListeners, getMouseMotionListeners, getRotation, intersects, move, rotate, setCenterLocation, setContainer, setDimension, setLocation, setRotation |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BouncingBall
public BouncingBall()
- Creates a new instance of BetterBouncingBall
stopBouncing
public void stopBouncing()
- Method to be called when user wants the ball to stop bouncing.
startBouncing
public void startBouncing()
- Method to be called when the user wants the ball to start bouncing.