Package com.jme3.system
Class AWTTaskExecutor
java.lang.Object
com.jme3.system.AWTTaskExecutor
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)
- Author:
- Julien Seinturier - COMEX SA - http://www.seinturier.fr, Alexander Brui (JavaSaBr)
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddToExecute(Runnable task) Add the givenrunnableto the list of planned executions.voidexecute()Execute all the tasks that are waiting.static AWTTaskExecutorGet the instance of the executor.
-
Method Details
-
getInstance
Get the instance of the executor.- Returns:
- the instance of executor.
-
getWaitingTasks
-
addToExecute
Add the givenrunnableto the list of planned executions.- Parameters:
task- the task to add.- See Also:
-
execute
public void execute()Execute all the tasks that are waiting.- See Also:
-