ini.trakem2.display
Class AbstractOffscreenThread

java.lang.Object
  extended by java.lang.Thread
      extended by ini.trakem2.display.AbstractOffscreenThread
All Implemented Interfaces:
java.lang.Runnable

public abstract class AbstractOffscreenThread
extends java.lang.Thread

To be used in combination with the AbstractRepaintThread, as a thread to create graphics offscreen.


Nested Class Summary
protected static interface AbstractOffscreenThread.RepaintProperties
           
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
protected  AbstractOffscreenThread.RepaintProperties rp
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Method Summary
abstract  void paint()
           
 void run()
           
 void setProperties(AbstractOffscreenThread.RepaintProperties rp)
           
 void waitOnRepaintCycle()
           
 
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
 

Field Detail

rp

protected volatile AbstractOffscreenThread.RepaintProperties rp
Method Detail

setProperties

public void setProperties(AbstractOffscreenThread.RepaintProperties rp)

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

waitOnRepaintCycle

public void waitOnRepaintCycle()

paint

public abstract void paint()