|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jogamp.newt.impl.DefaultEDTUtil
public class DefaultEDTUtil
Field Summary | |
---|---|
static boolean |
DEBUG
|
Fields inherited from interface com.jogamp.newt.util.EDTUtil |
---|
defaultEDTPollGranularity |
Constructor Summary | |
---|---|
DefaultEDTUtil(ThreadGroup tg,
String name,
Runnable dispatchMessages)
|
Method Summary | |
---|---|
void |
invoke(boolean wait,
Runnable task)
Append task to the EDT task queue. Wait until execution is finished if wait == true .Shall start the thread if not running. Can be issued from within EDT, ie from within an enqueued task. |
void |
invokeStop(Runnable task)
Append the final task to the EDT task queue, signals EDT to stop and wait until stopped. Due to the nature of this method: All previous queued tasks will be finished. No new tasks are allowed, an Exception is thrown. Can be issued from within EDT, ie from within an enqueued task. EDTUtil.reset() may follow immediately, ie creating a new EDT
|
boolean |
isCurrentThreadEDT()
|
boolean |
isRunning()
|
void |
reset()
Create a new EDT. |
void |
start()
Start the EDT |
void |
waitUntilIdle()
Wait until the EDT task queue is empty. The last task may still be in execution when this method returns. |
void |
waitUntilStopped()
Wait until EDT task is stopped. No stop action is performed, EDTUtil.invokeStop(java.lang.Runnable) should be used before. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final boolean DEBUG
Constructor Detail |
---|
public DefaultEDTUtil(ThreadGroup tg, String name, Runnable dispatchMessages)
Method Detail |
---|
public final void reset()
EDTUtil
reset()
invokeStop(..)
in case another start()
or invoke(..)
is expected.
reset
in interface EDTUtil
EDTUtil.start()
,
EDTUtil.invoke(boolean, java.lang.Runnable)
,
EDTUtil.invokeStop(java.lang.Runnable)
public final void start()
EDTUtil
start
in interface EDTUtil
public final boolean isCurrentThreadEDT()
isCurrentThreadEDT
in interface EDTUtil
public final boolean isRunning()
isRunning
in interface EDTUtil
public final void invokeStop(Runnable task)
EDTUtil
EDTUtil.reset()
may follow immediately, ie creating a new EDT
invokeStop
in interface EDTUtil
public final void invoke(boolean wait, Runnable task)
EDTUtil
wait == true
.
invoke
in interface EDTUtil
public void waitUntilIdle()
EDTUtil
waitUntilIdle
in interface EDTUtil
public void waitUntilStopped()
EDTUtil
stop
action is performed, EDTUtil.invokeStop(java.lang.Runnable)
should be used before.
waitUntilStopped
in interface EDTUtil
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |