|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RenderingExecutor
Defines the core methods for executors used to run drawing tasks on background threads.
Field Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Field Detail |
---|
static final long TASK_REJECTED
Method Detail |
---|
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 progress
TASK_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 progress
TASK_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 down
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |