public abstract class AbstractTiledLayer extends AbstractGeotoolsLayer
MapLayer.RenderType| Modifier and Type | Field and Description |
|---|---|
protected double |
imageBufferScaling
The scale ratio between the tiles resolution and the target resolution.
|
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractTiledLayer(java.util.concurrent.ForkJoinPool forkJoinPool,
StyleSupplier<org.geotools.coverage.grid.GridCoverage2D> styleSupplier,
AbstractLayerParams params,
com.codahale.metrics.MetricRegistry registry,
Configuration configuration)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cacheResources(HttpRequestCache httpRequestCache,
MfClientHttpRequestFactory clientHttpRequestFactory,
MapfishMapContext transformer,
java.lang.String jobId)
Cache any needed resources on disk.
|
protected abstract TileCacheInformation |
createTileInformation(MapBounds bounds,
java.awt.Rectangle paintArea,
double dpi)
Create the tile cache information object for the given parameters.
|
double |
getImageBufferScaling()
Get the scale ratio between the tiles resolution and the target resolution.
|
protected java.util.List<? extends org.geotools.map.Layer> |
getLayers(MfClientHttpRequestFactory httpRequestFactory,
MapfishMapContext mapContext,
java.lang.String jobId)
Get the
DataStore object that contains the data for this layer. |
void |
prepareRender(MapfishMapContext mapContext)
Render the layer to the graphics2D object.
|
getFailOnError, getLayerTransformer, getName, getOpacity, render, supportsNativeRotation, tryAddLayerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRenderTypeprotected double imageBufferScaling
protected AbstractTiledLayer(@Nullable
java.util.concurrent.ForkJoinPool forkJoinPool,
@Nullable
StyleSupplier<org.geotools.coverage.grid.GridCoverage2D> styleSupplier,
@Nonnull
AbstractLayerParams params,
@Nullable
com.codahale.metrics.MetricRegistry registry,
@Nonnull
Configuration configuration)
forkJoinPool - the thread pool for doing the rendering.styleSupplier - strategy for loading the style for this layer.params - the parameters for this layer.registry - the metrics registry.configuration - the configuration.public final void prepareRender(MapfishMapContext mapContext)
MapLayerprepareRender in interface MapLayerprepareRender in class AbstractGeotoolsLayermapContext - the map transformer containing the map bounds and size.protected final java.util.List<? extends org.geotools.map.Layer> getLayers(MfClientHttpRequestFactory httpRequestFactory, MapfishMapContext mapContext, java.lang.String jobId) 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 transformerjobId - the job IDjava.lang.Exceptionprotected abstract TileCacheInformation createTileInformation(MapBounds bounds, java.awt.Rectangle paintArea, double dpi)
bounds - the map boundspaintArea - the area to paintdpi - the DPI to render atpublic final double getImageBufferScaling()
MapLayerpublic final void cacheResources(HttpRequestCache httpRequestCache, MfClientHttpRequestFactory clientHttpRequestFactory, MapfishMapContext transformer, java.lang.String jobId)
MapLayercacheResources in interface MapLayercacheResources in class AbstractGeotoolsLayerhttpRequestCache - TODOclientHttpRequestFactory - client http request factorytransformer - transformerjobId - the job ID