t3.portfolios
Class AnimatorJobsThread

java.lang.Object
  extended by java.lang.Thread
      extended by t3.portfolios.AnimatorThread
          extended by t3.portfolios.AnimatorJobsThread
All Implemented Interfaces:
java.lang.Runnable

public class AnimatorJobsThread
extends AnimatorThread

A thread that animates a set of portfolios by interpolating each from its current PORTtoPPORT transform to a specified transform. Call interrupt() to stop the thread animating.

Author:
pjt40

Nested Class Summary
static class AnimatorJobsThread.AnimationJob
           
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
AnimatorJobsThread(long targetMsBetweenFrames, PortfolioServer ps, java.util.List<AnimatorJobsThread.AnimationJob> jobs, long durationMillis, java.lang.Runnable onCompletion)
           
 
Method Summary
 void runOnComplete()
           
 void runOnEachLoop()
           
 
Methods inherited from class t3.portfolios.AnimatorThread
getStartTime, isCompleted, reqToComplete, run
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AnimatorJobsThread

public AnimatorJobsThread(long targetMsBetweenFrames,
                          PortfolioServer ps,
                          java.util.List<AnimatorJobsThread.AnimationJob> jobs,
                          long durationMillis,
                          java.lang.Runnable onCompletion)
Parameters:
jobs -
durationMillis -
intervalMillis -
onCompletion -
Method Detail

runOnComplete

public void runOnComplete()
Overrides:
runOnComplete in class AnimatorThread

runOnEachLoop

public void runOnEachLoop()
Specified by:
runOnEachLoop in class AnimatorThread