public class TabPreviewThread extends TrackableThread
Modifier and Type | Class | Description |
---|---|---|
static interface |
TabPreviewThread.TabPreviewCallback |
Interface for offering the tab preview image once it has been computed.
|
static class |
TabPreviewThread.TabPreviewInfo |
Information for previewing a tabbed pane.
|
Modifier and Type | Field | Description |
---|---|---|
protected DeltaQueue |
previewQueue |
Queue of preview requests.
|
Modifier and Type | Method | Description |
---|---|---|
void |
cancelTabPreviewRequests(java.lang.Object initiator) |
Cancels all tab preview requests that were initiated by the specified
initiator.
|
static TabPreviewThread |
getInstance() |
Returns the singleton instance of the tab preview thread.
|
protected void |
getSingleTabPreviewImage(javax.swing.JTabbedPane tabPane,
TabPreviewPainter previewPainter,
TabPreviewThread.TabPreviewInfo previewInfo,
int tabIndex) |
Computes and offers the preview thumbnail for a single tab.
|
static boolean |
instanceRunning() |
Returns indication whether tab preview thread is running.
|
void |
queueTabPreviewRequest(TabPreviewThread.TabPreviewInfo previewInfo) |
Queues the request to preview one or all tabs in the specified tabbed
pane.
|
protected void |
requestStop() |
Issues a stop request on
this thread. |
void |
run() |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
activeCount, 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, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
requestStopAllThreads
protected DeltaQueue previewQueue
TabPreviewThread.TabPreviewInfo
s.public void run()
run
in class java.lang.Thread
protected void getSingleTabPreviewImage(javax.swing.JTabbedPane tabPane, TabPreviewPainter previewPainter, TabPreviewThread.TabPreviewInfo previewInfo, int tabIndex)
tabPane
- Tabbed pane.previewPainter
- Tab preview painter.previewInfo
- Preview info.tabIndex
- Index of the tab to preview.public void queueTabPreviewRequest(TabPreviewThread.TabPreviewInfo previewInfo)
TabOverviewDialog
).previewInfo
- Tab preview info.public void cancelTabPreviewRequests(java.lang.Object initiator)
initiator
- Initiator.protected void requestStop()
TrackableThread
this
thread.requestStop
in class TrackableThread
public static TabPreviewThread getInstance()
public static boolean instanceRunning()
true
if the tab preview thread is running,
false
otherwise.