Package org.geotools.swing
Class RenderingTask
Object
RenderingTask
- All Implemented Interfaces:
Callable<Boolean>,RenderListener
A rendering task to be run by a
RenderingExecutor.- Since:
- 8.0
- Author:
- Michael Bedward
-
Constructor Summary
ConstructorsConstructorDescriptionRenderingTask(MapContent mapContent, Graphics2D destinationGraphics, GTRenderer renderer) Creates a new rendering task. -
Method Summary
Modifier and TypeMethodDescriptioncall()Called by the executor to run this rendering task.voidcancel()voidCalled by the renderer on errorvoidfeatureRenderer(SimpleFeature feature) Called by the renderer when each feature is drawn.booleanbooleanisFailed()booleanMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface RenderListener
labellingEnd, labellingStart, layerEnd, layerStart, renderingComplete
-
Constructor Details
-
RenderingTask
Creates a new rendering task.
-
-
Method Details
-
cancel
public void cancel() -
call
Called by the executor to run this rendering task. -
featureRenderer
Called by the renderer when each feature is drawn. This implementation does nothing.- Specified by:
featureRendererin interfaceRenderListener- Parameters:
feature- the feature just drawn
-
errorOccurred
Called by the renderer on error- Specified by:
errorOccurredin interfaceRenderListener- Parameters:
e- cause of the error
-
isRunning
public boolean isRunning() -
isFailed
public boolean isFailed() -
isCancelled
public boolean isCancelled()
-