public abstract class AbstractSingleImageLayer extends AbstractGeotoolsLayer
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractSingleImageLayer(java.util.concurrent.ExecutorService executorService,
StyleSupplier<org.geotools.coverage.grid.GridCoverage2D> styleSupplier,
AbstractLayerParams params)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.util.List<? extends org.geotools.map.Layer> |
getLayers(MfClientHttpRequestFactory httpRequestFactory,
MapfishMapContext mapContext,
boolean isFirstLayer)
Get the
DataStore object that contains the data for this layer. |
protected abstract java.awt.image.BufferedImage |
loadImage(MfClientHttpRequestFactory requestFactory,
MapfishMapContext transformer,
boolean isFirstLayer)
Load the image at the requested size for the provided map bounds.
|
getFailOnError, getName, render, supportsNativeRotation, tryAddLayerprotected AbstractSingleImageLayer(java.util.concurrent.ExecutorService executorService,
StyleSupplier<org.geotools.coverage.grid.GridCoverage2D> styleSupplier,
AbstractLayerParams params)
executorService - the thread pool for doing the rendering.styleSupplier - the style to use when drawing the constructed grid coverage on the map.params - the parameters for this layerprotected final java.util.List<? extends org.geotools.map.Layer> getLayers(MfClientHttpRequestFactory httpRequestFactory, MapfishMapContext mapContext, boolean isFirstLayer) throws java.lang.Exception
AbstractGeotoolsLayerDataStore object that contains the data for this layer.getLayers in class AbstractGeotoolsLayerhttpRequestFactory - the factory for making http requestsmapContext - the map transformerisFirstLayer - true indicates this layer is the first layer in the map (the first layer drawn, ie the base layer)java.lang.Exceptionprotected abstract java.awt.image.BufferedImage loadImage(MfClientHttpRequestFactory requestFactory, MapfishMapContext transformer, boolean isFirstLayer) throws java.lang.Throwable
requestFactory - the factory to use for making http requeststransformer - object containing map rendering informationisFirstLayer - true indicates this layer is the first layer in the map (the first layer drawn, ie the base layer)java.lang.Throwable