Class MemoryUsageAndHistoryMonitor.RepaintThread
java.lang.Object
java.lang.Thread
be.gaudry.swing.component.monitor.MemoryUsageAndHistoryMonitor.RepaintThread
- All Implemented Interfaces:
Runnable
- Enclosing class:
- MemoryUsageAndHistoryMonitor
This thread repaints a list of components.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
Field Summary
Modifier and TypeFieldDescriptionprotected List<JComponent>
The components to repaint.protected Runtime
The runtime.protected boolean
Whether or not the thread was suspended.protected long
The repaint timeoutFields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
Constructor Summary
ConstructorDescriptionRepaintThread(long timeout, List<JComponent> components)
Creates a new Thread. -
Method Summary
Modifier and TypeMethodDescriptionvoid
run()
The thread main method.void
Resumes the thread.void
Suspends the thread.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
-
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 suspended.
-
-
Constructor Details
-
RepaintThread
Creates a new Thread.- Parameters:
timeout
- The time between two repaint in ms.components
- The components to repaint.
-
-
Method Details