gui
Class AWTUpdateQueue

java.lang.Object
  extended by gui.AWTUpdateQueue

public class AWTUpdateQueue
extends java.lang.Object

Queues update operations for the AWT Event Thread. There are never more than two operations in the queue, as additional operations will be skipped immediatly. The queue should therefore contain only update operations for the same GUI elements.

Author:
Rolf Wendolsky

Field Summary
private  java.lang.Object JOB_LOCK
           
private  java.lang.Runnable m_awtRunnable
           
private  int m_jobs
           
private  java.lang.Object UPDATE_LOCK
           
 
Constructor Summary
AWTUpdateQueue(java.lang.Runnable a_awtRunnable)
           
 
Method Summary
private  void doUpdateQueue()
           
 void update(boolean a_bSync)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_awtRunnable

private java.lang.Runnable m_awtRunnable

m_jobs

private int m_jobs

JOB_LOCK

private java.lang.Object JOB_LOCK

UPDATE_LOCK

private java.lang.Object UPDATE_LOCK
Constructor Detail

AWTUpdateQueue

public AWTUpdateQueue(java.lang.Runnable a_awtRunnable)
Method Detail

update

public void update(boolean a_bSync)

doUpdateQueue

private void doUpdateQueue()