public class RenderingTask extends Object implements Callable<Boolean>, RenderListener
RenderingExecutor
.Constructor and Description |
---|
RenderingTask(MapContent mapContent,
Graphics2D destinationGraphics,
GTRenderer renderer)
Creates a new rendering task.
|
Modifier and Type | Method and Description |
---|---|
Boolean |
call()
Called by the executor to run this rendering task.
|
void |
cancel() |
void |
errorOccurred(Exception e)
Called by the renderer on error
|
void |
featureRenderer(SimpleFeature feature)
Called by the renderer when each feature is drawn.
|
boolean |
isCancelled() |
boolean |
isFailed() |
boolean |
isRunning() |
public RenderingTask(MapContent mapContent, Graphics2D destinationGraphics, GTRenderer renderer)
mapContent
- renderer
- graphics
- public void cancel()
public void featureRenderer(SimpleFeature feature)
featureRenderer
in interface RenderListener
feature
- the feature just drawnpublic void errorOccurred(Exception e)
errorOccurred
in interface RenderListener
e
- cause of the errorpublic boolean isRunning()
public boolean isFailed()
public boolean isCancelled()
Copyright © 1996–2019 Geotools. All rights reserved.