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
-
Method Summary
Modifier and TypeMethodDescriptionstatic ALcdPaintExecutorService
create()
Creates a new paint executor service backed by a daemon thread.static ALcdPaintExecutorService
Creates a new paint executor service backed by the Event Dispatch Thread, also known as AWT thread or Swing thread.abstract void
invokeAndWait
(Runnable aRunnable) CausesaRunnable
to have itsrun
method called in the thread of this paint executor service.abstract void
invokeLater
(Runnable aRunnable) CausesaRunnable
to have itsrun
method 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
CausesaRunnable
to have itsrun
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
CausesaRunnable
to have itsrun
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
-