jview
Class JChronology.ReplayThread
java.lang.Object
java.lang.Thread
jview.JChronology.ReplayThread
- All Implemented Interfaces:
- Runnable
- Enclosing class:
- JChronology
private class JChronology.ReplayThread
- extends Thread
A replay thread takes a list of componts and displays them until stopped.
|
Field Summary |
private boolean |
cancel
If this is true, we cancel. |
private int |
restarts
The number of restarts until the thread dies. |
private List<Component> |
sequence
The list of components to play in play mode. |
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
cancel
private boolean cancel
- If this is true, we cancel.
sequence
private List<Component> sequence
- The list of components to play in play mode.
restarts
private int restarts
- The number of restarts until the thread dies.
JChronology.ReplayThread
public JChronology.ReplayThread(List<Component> movie,
int loops)
addComponent
private void addComponent(Component atend)
- Adds a component to the end of our display list.
run
public void run()
- Specified by:
run in interface Runnable- Overrides:
run in class Thread
cancel
public void cancel()
oneLoop
private void oneLoop()
- Plays one loop.