demos.bounce
Class BouncingSquare

java.lang.Object
  extended by cse115.graphics.AbstractGraphic
      extended by cse115.graphics.AbstractColorableGraphic
          extended by cse115.graphics.Rectangle
              extended by demos.bounce.BouncingSquare
All Implemented Interfaces:
CenterLocatable, Colorable, ColorableGraphic, Graphic, Locatable, Rotatable, Sizeable

public class BouncingSquare
extends Rectangle


Constructor Summary
BouncingSquare()
          Creates a new instance of BouncingSquare
 
Method Summary
 void startBouncing()
          Method to be called when the user wants the square to start bouncing.
 void stopBouncing()
          Method to be called when user wants the square to stop bouncing.
 
Methods inherited from class cse115.graphics.Rectangle
actualPaint, getShape
 
Methods inherited from class cse115.graphics.AbstractColorableGraphic
getColor, paint, setColor
 
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
 
Methods inherited from interface cse115.graphics.Graphic
addMouseListener, addMouseMotionListener, contains, getBounds, getMouseListeners, getMouseMotionListeners, intersects, setContainer
 
Methods inherited from interface cse115.graphics.Sizeable
getDimension, setDimension
 
Methods inherited from interface cse115.graphics.CenterLocatable
getCenterLocation, setCenterLocation
 
Methods inherited from interface cse115.graphics.Locatable
getLocation, move, setLocation
 
Methods inherited from interface cse115.graphics.Rotatable
getRotation, rotate, setRotation
 

Constructor Detail

BouncingSquare

public BouncingSquare()
Creates a new instance of BouncingSquare

Method Detail

stopBouncing

public void stopBouncing()
Method to be called when user wants the square to stop bouncing.


startBouncing

public void startBouncing()
Method to be called when the user wants the square to start bouncing.