Class MemoryMonitor.RepaintThread
java.lang.Object
java.lang.Thread
org.apache.batik.util.gui.MemoryMonitor.RepaintThread
- All Implemented Interfaces:
Runnable
- Enclosing class:
MemoryMonitor
This thread repaints a list of components.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class Thread
Thread.Builder, Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ListThe components to repaint.protected RuntimeThe runtime.protected booleanWhether or not the thread was supended.protected longThe repaint timeoutRunnable for updating components.Fields inherited from class Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidrun()The thread main method.voidResumes the thread.voidSuspends the thread.Methods inherited from class Thread
activeCount, checkAccess, clone, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, isVirtual, join, join, join, join, ofPlatform, ofVirtual, onSpinWait, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, sleep, start, startVirtualThread, stop, threadId, toString, yield
-
Field Details
-
timeout
protected long timeoutThe repaint timeout -
components
The components to repaint. -
runtime
The runtime. -
suspended
protected boolean suspendedWhether or not the thread was supended. -
updateRunnable
Runnable for updating components.
-
-
Constructor Details
-
RepaintThread
Creates a new Thread.- Parameters:
timeout- The time between two repaint in ms.components- The components to repaint.
-
-
Method Details
-
run
-
createUpdateRunnable
-
safeSuspend
public void safeSuspend()Suspends the thread. -
safeResume
public void safeResume()Resumes the thread.
-