public class AWTTaskExecutor
extends java.lang.Object
This class is dedicated to the queuing of AWT related tasks and their execution. It's able to store tasks that have to be executed within an AWT context and execute them at the specified time.
This class is an AWT implementation of the JavaFX original code provided by Alexander Brui (see JME3-FX)
| Modifier and Type | Method and Description |
|---|---|
void |
addToExecute(java.lang.Runnable task)
Add the given
runnable to the list of planned executions. |
void |
execute()
Execute all the tasks that are waiting.
|
static AWTTaskExecutor |
getInstance()
Get the instance of the executor.
|
java.util.List<java.lang.Runnable> |
getWaitingTasks() |
public static AWTTaskExecutor getInstance()
public java.util.List<java.lang.Runnable> getWaitingTasks()
public void addToExecute(java.lang.Runnable task)
runnable to the list of planned executions.task - the task to add.execute()public void execute()
addToExecute(Runnable)