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
FieldsModifier and TypeFieldDescriptionprotected List<JComponent>The components to repaint.protected RuntimeThe runtime.protected booleanWhether or not the thread was suspended.protected longThe repaint timeoutFields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
ConstructorsConstructorDescriptionRepaintThread(long timeout, List<JComponent> components)Creates a new Thread. -
Method Summary
Modifier and TypeMethodDescriptionvoidrun()The thread main method.voidResumes the thread.voidSuspends 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