Class AWTTaskExecutor

java.lang.Object
com.jme3.system.AWTTaskExecutor

public class AWTTaskExecutor extends 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)

  • Method Details

    • getInstance

      public static AWTTaskExecutor getInstance()
      Get the instance of the executor.
      Returns:
      the instance of executor.
    • getWaitingTasks

      public List<Runnable> getWaitingTasks()
    • addToExecute

      public void addToExecute(Runnable task)
      Add the given runnable to 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: