Package com.luciad.view
Class ALcdPaintExecutorService
java.lang.Object
com.luciad.view.ALcdPaintExecutorService
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ALcdPaintExecutorServicecreate()Creates a new paint executor service backed by a daemon thread.static ALcdPaintExecutorServiceCreates a new paint executor service backed by the Event Dispatch Thread, also known as AWT thread or Swing thread.abstract voidinvokeAndWait(Runnable aRunnable) CausesaRunnableto have itsrunmethod called in the thread of this paint executor service.abstract voidinvokeLater(Runnable aRunnable) CausesaRunnableto have itsrunmethod called in the thread of this paint executor service.abstract boolean
-
Constructor Details
-
ALcdPaintExecutorService
public ALcdPaintExecutorService()
-
-
Method Details
-
create
Creates a new paint executor service backed by a daemon thread.- Returns:
- a new paint executor service
-
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
CausesaRunnableto have itsrunmethod 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
CausesaRunnableto have itsrunmethod called in the thread of this paint executor service. This will happen after all pending invocations are processed.- Parameters:
aRunnable- the runnable to execute
-