|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--CSE115.BallWorld.Animator
Normal users can ignore this class. Tells MovingBody objects when to move. Created: Sun Feb 10 14:53:56 2002
Method Summary | |
void |
addBody(MovingBody b)
Add a body to the animator. |
void |
deleteBodies()
Remove all the bodies from the animator. |
void |
deleteBody(MovingBody b)
Remove a body from the animator. |
void |
setDelay(int delay)
Set the delay between moving the balls. |
static Animator |
singleton()
Get the Animator. |
void |
start()
Start animation. |
void |
stop()
Stop animating. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static Animator singleton()
public void addBody(MovingBody b)
b
- the moving body to add.public void deleteBody(MovingBody b)
b
- the moving body to remove.public void deleteBodies()
public void setDelay(int delay)
delay
- the new delay.public void start()
public void stop()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |