Package org.apache.batik.util.gui
Class MemoryMonitor.RepaintThread
- java.lang.Object
-
- java.lang.Thread
-
- org.apache.batik.util.gui.MemoryMonitor.RepaintThread
-
- All Implemented Interfaces:
java.lang.Runnable
- Enclosing class:
- MemoryMonitor
public static class MemoryMonitor.RepaintThread extends java.lang.ThreadThis thread repaints a list of components.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classMemoryMonitor.RepaintThread.UpdateRunnable
-
Field Summary
Fields Modifier and Type Field Description protected java.util.ListcomponentsThe components to repaint.protected java.lang.RuntimeruntimeThe runtime.protected booleansuspendedWhether or not the thread was supended.protected longtimeoutThe repaint timeoutprotected MemoryMonitor.RepaintThread.UpdateRunnableupdateRunnableRunnable for updating components.
-
Constructor Summary
Constructors Constructor Description RepaintThread(long timeout, java.util.List components)Creates a new Thread.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected MemoryMonitor.RepaintThread.UpdateRunnablecreateUpdateRunnable()voidrun()The thread main method.voidsafeResume()Resumes the thread.voidsafeSuspend()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 Detail
-
timeout
protected long timeout
The repaint timeout
-
components
protected java.util.List components
The components to repaint.
-
runtime
protected java.lang.Runtime runtime
The runtime.
-
suspended
protected boolean suspended
Whether or not the thread was supended.
-
updateRunnable
protected MemoryMonitor.RepaintThread.UpdateRunnable updateRunnable
Runnable for updating components.
-
-
Method Detail
-
run
public void run()
The thread main method.- Specified by:
runin interfacejava.lang.Runnable- Overrides:
runin classjava.lang.Thread
-
createUpdateRunnable
protected MemoryMonitor.RepaintThread.UpdateRunnable createUpdateRunnable()
-
safeSuspend
public void safeSuspend()
Suspends the thread.
-
safeResume
public void safeResume()
Resumes the thread.
-
-