public abstract class AbstractGeotoolsLayer extends java.lang.Object implements MapLayer
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractGeotoolsLayer(java.util.concurrent.ExecutorService executorService,
AbstractLayerParams params)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
getFailOnError() |
protected abstract java.util.List<? extends org.geotools.map.Layer> |
getLayers(MfClientHttpRequestFactory httpRequestFactory,
MapfishMapContext transformer,
boolean isFirstLayer)
Get the
DataStore object that contains the data for this layer. |
java.lang.String |
getName()
The layer name.
|
void |
render(java.awt.Graphics2D graphics2D,
MfClientHttpRequestFactory clientHttpRequestFactory,
MapfishMapContext transformer,
boolean isFirstLayer)
Render the layer to the graphics2D object.
|
boolean |
supportsNativeRotation()
Indicate if the layer supports native rotation (e.g.
|
com.google.common.base.Optional<MapLayer> |
tryAddLayer(MapLayer newLayer)
Attempt to add the layer this layer so that both can be rendered as a single layer.
|
protected AbstractGeotoolsLayer(java.util.concurrent.ExecutorService executorService,
AbstractLayerParams params)
executorService - the thread pool for doing the rendering.params - the parameters for this layerpublic final com.google.common.base.Optional<MapLayer> tryAddLayer(MapLayer newLayer)
MapLayertryAddLayer in interface MapLayernewLayer - the layer to combine with this layer. The new layer will be rendered below the current layer.public final void render(java.awt.Graphics2D graphics2D,
MfClientHttpRequestFactory clientHttpRequestFactory,
MapfishMapContext transformer,
boolean isFirstLayer)
MapLayerrender in interface MapLayergraphics2D - the graphics object.clientHttpRequestFactory - The factory to use for making http requests.transformer - the map transformer containing the map bounds and sizeisFirstLayer - true indicates this layer is the first layer in the map (the first layer drawn, ie the base layer)protected abstract java.util.List<? extends org.geotools.map.Layer> getLayers(MfClientHttpRequestFactory httpRequestFactory, MapfishMapContext transformer, boolean isFirstLayer) throws java.lang.Exception
DataStore object that contains the data for this layer.httpRequestFactory - the factory for making http requeststransformer - the map transformerisFirstLayer - true indicates this layer is the first layer in the map (the first layer drawn, ie the base layer)java.lang.Exceptionpublic boolean supportsNativeRotation()
MapLayersupportsNativeRotation in interface MapLayerpublic final java.lang.String getName()
MapLayerpublic final boolean getFailOnError()