public interface RenderingExecutor
Modifier and Type | Field and Description |
---|---|
static long |
TASK_REJECTED
Value returned by the submit(org.geotools.map.MapContent, org.geotools.renderer.GTRenderer, java.awt.Graphics2D, org.geotools.swing.RenderingExecutorListener) method if a task is rejected by the executor.
|
Modifier and Type | Method and Description |
---|---|
void |
cancel(long taskId)
Cancels a specific rendering task.
|
void |
cancelAll() |
long |
getPollingInterval()
Get the interval for polling the result of a rendering task
|
boolean |
isShutdown()
Checks whether
shutdown() has been called. |
void |
setPollingInterval(long interval)
Set the interval for polling the result of a rendering task
|
void |
shutdown()
Stops any current rendering tasks and cleans up resources.
|
long |
submit(MapContent mapContent,
GTRenderer renderer,
Graphics2D graphics,
RenderingExecutorListener listener)
Submits a new rendering task to the executor.
|
long |
submit(MapContent mapContent,
List<RenderingOperands> operands,
RenderingExecutorListener listener)
Submits a new rendering task to the executor.
|
static final long TASK_REJECTED
long getPollingInterval()
void setPollingInterval(long interval)
interval
- interval in milliseconds (values <=
0 are ignored)long submit(MapContent mapContent, GTRenderer renderer, Graphics2D graphics, RenderingExecutorListener listener)
TASK_REJECTED
instead of a task ID value.mapContent
- the map content holding the layers to be renderedrenderer
- the renderer to usegraphics
- the graphics object to draw intolistener
- the listener to be notified of task progressTASK_REJECTED
IllegalArgumentException
- if any arguments are null
IllegalStateException
- if called after the executor has been shut downlong submit(MapContent mapContent, List<RenderingOperands> operands, RenderingExecutorListener listener)
TASK_REJECTED
instead of a task ID value.mapContent
- the map content holding the layers to be renderedoperands
- operands for each of the sub-tasks composing this tasklistener
- the listener to be notified of task progressTASK_REJECTED
IllegalArgumentException
- if any arguments are null
IllegalStateException
- if called after the executor has been shut downvoid cancel(long taskId)
taskId
- the ID value of the taskvoid cancelAll()
void shutdown()
boolean isShutdown()
shutdown()
has been called.true
if the executor has been shut downCopyright © 1996–2023 Geotools. All rights reserved.