jview
Class JChronology.ReplayThread

java.lang.Object
  extended by java.lang.Thread
      extended by 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.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
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.
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
JChronology.ReplayThread(List<Component> movie, int loops)
           
 
Method Summary
private  void addComponent(Component atend)
          Adds a component to the end of our display list.
 void cancel()
           
private  void oneLoop()
          Plays one loop.
 void run()
           
 
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
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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.

Constructor Detail

JChronology.ReplayThread

public JChronology.ReplayThread(List<Component> movie,
                                int loops)
Method Detail

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.