public abstract class AbstractRepaintThread extends CachingThread
Thread.State, Thread.UncaughtExceptionHandler| Modifier and Type | Field and Description |
|---|---|
protected AbstractOffscreenThread |
off |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
AbstractRepaintThread(Component target,
String name,
AbstractOffscreenThread off) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
handleUpdateGraphics(Component target,
Rectangle clipRect)
Child classes need to extend this method for handling the need of recreating offscreen images.
|
void |
paint(Rectangle clipRect)
Queue a new request for painting, updating offscreen graphics.
|
void |
paint(Rectangle clipRect,
boolean update_graphics)
Queue a new request for painting.
|
void |
quit()
Will gracefully kill this thread by breaking its infinite wait-for-event loop, and also call cancel on all registered offscreen threads.
|
void |
run() |
void |
waitForOffs()
Waits until the offscreen thread is finished with the current cycle.
|
clear, getOrCreateByteArray, getOrCreateByteArray, getOrCreateIntArray, releaseAll, storeArrayForReuse, storeForReuse, storeForReuse, storeForReuseactiveCount, 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, yieldprotected final AbstractOffscreenThread off
public AbstractRepaintThread(Component target, String name, AbstractOffscreenThread off)
public final void paint(Rectangle clipRect)
public void paint(Rectangle clipRect, boolean update_graphics)
public void quit()
protected abstract void handleUpdateGraphics(Component target, Rectangle clipRect)
public void waitForOffs()
Copyright © 2015–2021 Fiji. All rights reserved.