lab2lib
Class BouncingBall
java.lang.Object
graphics.AbstractGraphic
graphics.AbstractColorableGraphic
graphics.Ellipse
lab2lib.BouncingBall
- All Implemented Interfaces:
- CenterLocatable, IColorable, IColorableGraphic, IGraphic, ILocatable, IRotatable, ISizeable
public class BouncingBall
- extends Ellipse
Constructor Summary |
BouncingBall()
Creates a new instance of BetterBouncingBouncyShape |
Method Summary |
void |
startBouncing()
Method to be called when the user wants the BouncyShape to start bouncing. |
void |
stopBouncing()
Method to be called when user wants the BouncyShape to stop bouncing. |
Methods inherited from class graphics.AbstractGraphic |
addMouseListener, addMouseMotionListener, contains, getBounds, getCenterLocation, getContainer, getDimension, getLocation, getMouseListeners, getMouseMotionListeners, getRotation, intersects, move, rotate, setCenterLocation, setContainer, setDimension, setLocation, setMovement, setRotation |
BouncingBall
public BouncingBall()
- Creates a new instance of BetterBouncingBouncyShape
stopBouncing
public void stopBouncing()
- Method to be called when user wants the BouncyShape to stop bouncing.
startBouncing
public void startBouncing()
- Method to be called when the user wants the BouncyShape to start bouncing.