|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.lang.Thread
|
+--DE.purple_sunshine.bigbro.SuspendableThread
|
+--DE.purple_sunshine.bigbro.Animator
The Animator controls a continuous time line and triggers the recomputation of the positions of each person. When this is done, the house is repainted.
SpyApplet,
SpyCanvas,
PositionLoader,
Person,
House| Field Summary | |
static int |
DEFAULT_FPS
The default number of frames per second (30fps). |
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
Animator(java.util.Vector persons,
int fps,
SpyCanvas canvas)
Constructs a new Animator. |
|
| Method Summary | |
void |
resetTime(long timeToNextReset)
Resets the time to the next position update. |
void |
run()
This does the actual animation in an own Thread. |
void |
smilyAnim()
Starts the Smily Animation which is done in a Thread of the SpyCanvas. |
| Methods inherited from class DE.purple_sunshine.bigbro.SuspendableThread |
finish, isFinished, resume_, suspend_ |
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int DEFAULT_FPS
| Constructor Detail |
public Animator(java.util.Vector persons,
int fps,
SpyCanvas canvas)
persons - the persons this animator should animatefps - if >0, the frames per secondcanvas - the SpyCanvas in which the frames shall be drawn| Method Detail |
public void resetTime(long timeToNextReset)
timeToNextReset - the expected time to the next position updatepublic void run()
run in class java.lang.Threadpublic void smilyAnim()
SpyCanvas.smilyAnim()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||