- java.lang.Object
-
- java.lang.Thread
-
- bdv.viewer.render.PainterThread
-
- All Implemented Interfaces:
RequestRepaint,Runnable
public class PainterThread extends Thread implements RequestRepaint
Thread to repaint display.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfacePainterThread.Paintable-
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
-
Field Summary
-
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
-
Constructor Summary
Constructors Constructor Description PainterThread(PainterThread.Paintable paintable)PainterThread(ThreadGroup group, PainterThread.Paintable paintable)PainterThread(ThreadGroup group, String name, PainterThread.Paintable paintable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidrequestRepaint()Request repaint.voidrun()-
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
-
-
-
Constructor Detail
-
PainterThread
public PainterThread(PainterThread.Paintable paintable)
-
PainterThread
public PainterThread(ThreadGroup group, PainterThread.Paintable paintable)
-
PainterThread
public PainterThread(ThreadGroup group, String name, PainterThread.Paintable paintable)
-
-
Method Detail
-
requestRepaint
public void requestRepaint()
Request repaint. This will trigger a call toPainterThread.Paintable.paint()from thePainterThread.- Specified by:
requestRepaintin interfaceRequestRepaint
-
-