|
Java Eyes Problem Set Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcs101.util.AnimateObject
The generic self-animating (active) object. Extend it, overriding its act() method, to generate interesting behavior. Copyright 1999 Massachusetts Institute of Technology
AnimatorThread,
Animate| Field Summary | |
static boolean |
DONT_START_YET
These constants allow mnemonic access to AnimateObject's final constructor argument, i.e., should the object start running on construction or on (a subsequent) call to a separate start() method? |
protected AnimatorThread |
spirit
The animacy that makes this object go. |
static boolean |
START_IMMEDIATELY
These constants allow mnemonic access to AnimateObject's final constructor argument, i.e., should the object start running on construction or on (a subsequent) call to a separate start() method? |
| Constructor Summary | |
AnimateObject()
The most basic constructor creates the AnimateObject and starts its animacy going. |
|
AnimateObject(boolean startImmediately)
This constructor allows you to create an AnimateObject without starting its animacy going. |
|
| Method Summary | |
abstract void |
act()
Override this method to give the AnimateObject behavior. |
void |
start()
Invocation of this method begins this object's autonomous execution. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static boolean START_IMMEDIATELY
AnimateObject( boolean )public static boolean DONT_START_YET
AnimateObject( boolean )protected AnimatorThread spirit
AnimatorThread| Constructor Detail |
public AnimateObject()
public AnimateObject(boolean startImmediately)
startImmediately - If false, execution does not start until
explicit invocation of this object's start() method.START_IMMEDIATELY,
DONT_START_YET| Method Detail |
public void start()
AnimateObject( boolean )public abstract void act()
act in interface Animate
|
Java Eyes Problem Set Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||