cz.cuni.jagrlib.iface
Class GraphicsViewer.PreviewThread

java.lang.Object
  extended by java.lang.Thread
      extended by cz.cuni.jagrlib.iface.GraphicsViewer.PreviewThread
All Implemented Interfaces:
java.lang.Runnable
Enclosing interface:
GraphicsViewer

public static class GraphicsViewer.PreviewThread
extends java.lang.Thread

Preview thread for background repainting of attached GraphicsViewer instance.

Since:
0.25
See Also:
GraphicsViewer.java

Nested Class Summary
 
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
GraphicsViewer.PreviewThread(GraphicsViewer preview)
          Initializing constructor - sets minimum thread priority as default.
 
Method Summary
 void run()
          Preview rendering loop.
 void safeStart()
          Safe thread start.
 
Methods inherited from class java.lang.Thread
activeCount, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, checkAccess, 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

GraphicsViewer.PreviewThread

public GraphicsViewer.PreviewThread(GraphicsViewer preview)
Initializing constructor - sets minimum thread priority as default.

Method Detail

run

public void run()
Preview rendering loop.

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

safeStart

public void safeStart()
Safe thread start.