Class ALcdPaintExecutorService

java.lang.Object
com.luciad.view.ALcdPaintExecutorService

public abstract class ALcdPaintExecutorService extends Object
Encapsulates a single-threaded execution and rendering service, similar to the Event Dispatch Thread. This is useful for rendering interactive offscreen views in a background thread.
Since:
11.2.04
See Also:
  • Constructor Details

    • ALcdPaintExecutorService

      public ALcdPaintExecutorService()
  • Method Details

    • create

      public static ALcdPaintExecutorService create()
      Creates a new paint executor service backed by a daemon thread.
      Returns:
      a new paint executor service
    • createEDT

      public static ALcdPaintExecutorService createEDT()
      Creates a new paint executor service backed by the Event Dispatch Thread, also known as AWT thread or Swing thread.
      Returns:
      a new paint executor service
    • isCurrentThread

      public abstract boolean isCurrentThread()
      Returns:
      true if the current thread is the paint service's thread
    • invokeAndWait

      public abstract void invokeAndWait(Runnable aRunnable)
      Causes aRunnable to have its run method called in the thread of this paint executor service. This will happen after all pending invocations are processed. The calling thread is blocked until the runnable has finished.
      Parameters:
      aRunnable - the runnable to execute
    • invokeLater

      public abstract void invokeLater(Runnable aRunnable)
      Causes aRunnable to have its run method called in the thread of this paint executor service. This will happen after all pending invocations are processed.
      Parameters:
      aRunnable - the runnable to execute