|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object fishbowl.Animator
public class 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(Observer b)
Add a body to the animator. |
void |
deleteBodies()
Remove all the bodies from the animator. |
void |
deleteBody(Observer 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 |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Animator singleton()
public void addBody(Observer b)
b
- the moving body to add.public void deleteBody(Observer 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 |