com.jogamp.newt.util
Class EDTUtil

java.lang.Object
  extended by com.jogamp.newt.util.EDTUtil

public class EDTUtil
extends Object


Field Summary
static boolean DEBUG
           
 
Constructor Summary
EDTUtil(ThreadGroup tg, String name, Runnable pumpMessages)
           
 
Method Summary
 Thread getEDT()
           
 String getName()
           
 ThreadGroup getThreadGroup()
           
 void invoke(boolean wait, Runnable task)
           
 void invokeAndWait(Runnable task)
           
 void invokeLater(Runnable task)
           
 boolean isCurrentThreadEDT()
           
 boolean isRunning()
           
 boolean isThreadEDT(Thread thread)
           
 Thread start()
           
 void stop()
           
 void waitOnWorker()
           
 void waitUntilStopped()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEBUG

public static final boolean DEBUG
Constructor Detail

EDTUtil

public EDTUtil(ThreadGroup tg,
               String name,
               Runnable pumpMessages)
Method Detail

getName

public String getName()

getThreadGroup

public ThreadGroup getThreadGroup()

start

public Thread start()
Returns:
The started Runnable, which handles the run-loop.

stop

public void stop()

getEDT

public Thread getEDT()

isThreadEDT

public boolean isThreadEDT(Thread thread)

isCurrentThreadEDT

public boolean isCurrentThreadEDT()

isRunning

public boolean isRunning()

invokeLater

public void invokeLater(Runnable task)

invokeAndWait

public void invokeAndWait(Runnable task)

invoke

public void invoke(boolean wait,
                   Runnable task)

waitOnWorker

public void waitOnWorker()

waitUntilStopped

public void waitUntilStopped()


Copyright 2010 JogAmp Community.