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 |
|---|---|
|
AbstractTiledLayer(AbstractGeotoolsLayer other,
StyleSupplier<org.geotools.coverage.grid.GridCoverage2D> styleSupplier,
com.codahale.metrics.MetricRegistry registry,
Configuration configuration)
Copy constructor.
|
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 |
|---|---|
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,
Processor.ExecutionContext context)
Get the
DataStore object that contains the data for this layer. |
void |
prefetchResources(HttpRequestFetcher httpRequestFetcher,
MfClientHttpRequestFactory clientHttpRequestFactory,
MapfishMapContext transformer,
Processor.ExecutionContext context)
Cache any needed resources on disk.
|
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 AbstractTiledLayer(AbstractGeotoolsLayer other, @Nullable StyleSupplier<org.geotools.coverage.grid.GridCoverage2D> styleSupplier, @Nullable com.codahale.metrics.MetricRegistry registry, @Nonnull Configuration configuration)
other - The source.styleSupplier - strategy for loading the style 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, Processor.ExecutionContext context)
AbstractGeotoolsLayerDataStore object that contains the data for this layer.getLayers in class AbstractGeotoolsLayerhttpRequestFactory - the factory for making http requestsmapContext - the map transformercontext - the job IDprotected 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 prefetchResources(HttpRequestFetcher httpRequestFetcher, MfClientHttpRequestFactory clientHttpRequestFactory, MapfishMapContext transformer, Processor.ExecutionContext context)
MapLayerprefetchResources in interface MapLayerprefetchResources in class AbstractGeotoolsLayerhttpRequestFetcher - TODOclientHttpRequestFactory - client http request factorytransformer - transformercontext - the job ID