org.apache.batik.util.gui

Class MemoryMonitor.RepaintThread

public static class MemoryMonitor.RepaintThread extends Thread

This thread repaints a list of components.
Nested Class Summary
protected classMemoryMonitor.RepaintThread.UpdateRunnable
Field Summary
protected Listcomponents
The components to repaint.
protected Runtimeruntime
The runtime.
protected booleansuspended
Whether or not the thread was supended.
protected longtimeout
The repaint timeout
protected MemoryMonitor.RepaintThread.UpdateRunnableupdateRunnable
Runnable for updating components.
Constructor Summary
RepaintThread(long timeout, List components)
Creates a new Thread.
Method Summary
protected MemoryMonitor.RepaintThread.UpdateRunnablecreateUpdateRunnable()
voidrun()
The thread main method.
voidsafeResume()
Resumes the thread.
voidsafeSuspend()
Suspends the thread.

Field Detail

components

protected List components
The components to repaint.

runtime

protected Runtime runtime
The runtime.

suspended

protected boolean suspended
Whether or not the thread was supended.

timeout

protected long timeout
The repaint timeout

updateRunnable

protected MemoryMonitor.RepaintThread.UpdateRunnable updateRunnable
Runnable for updating components.

Constructor Detail

RepaintThread

public RepaintThread(long timeout, List components)
Creates a new Thread.

Parameters: timeout The time between two repaint in ms. components The components to repaint.

Method Detail

createUpdateRunnable

protected MemoryMonitor.RepaintThread.UpdateRunnable createUpdateRunnable()

run

public void run()
The thread main method.

safeResume

public void safeResume()
Resumes the thread.

safeSuspend

public void safeSuspend()
Suspends the thread.
Copyright B) 2007 Apache Software Foundation. All Rights Reserved.