T
- Tile Source class used by this Imagery Layerpublic abstract class AbstractCachedTileSourceLayer<T extends AbstractTMSTileSource> extends AbstractTileSourceLayer<T>
AbstractTileSourceLayer.PrecacheTask, AbstractTileSourceLayer.TileSet, AbstractTileSourceLayer.TileSourceLayerPopup
ImageryLayer.OffsetAction, ImageryLayer.OffsetMenuEntry
Layer.LayerAction, Layer.LayerGpxExportAction, Layer.LayerSaveAction, Layer.LayerSaveAsAction, Layer.MultiLayerAction, Layer.SeparatorLayerAction
AbstractMapViewPaintable.CompatibilityModeLayerPainter
MapViewPaintable.LayerPainter, MapViewPaintable.MapViewEvent, MapViewPaintable.PaintableInvalidationEvent, MapViewPaintable.PaintableInvalidationListener
Modifier and Type | Field and Description |
---|---|
private org.apache.commons.jcs.access.behavior.ICacheAccess<java.lang.String,BufferedImageCacheEntry> |
cache |
private static java.util.Map<java.lang.String,TileLoaderFactory> |
loaderFactories
loader factory responsible for loading tiles for all layers
|
private TileLoaderFactory |
loaderFactory |
private static TileLoaderFactory |
loaderFactoryOverride |
static IntegerProperty |
MAX_DISK_CACHE_SIZE
how many object on disk should be stored for TMS region in MB.
|
private static java.lang.String |
PREFERENCE_PREFIX |
coordinateConverter, MAX_ZOOM, MIN_ZOOM, PROP_MAX_ZOOM_LVL, PROP_MIN_ZOOM_LVL, tileCache, tileLoader, tileSource, ZOOM_OFFSET
icon, info, PROP_SHARPEN_LEVEL
FILTER_STATE_PROP, NAME_PROP, OPACITY_PROP, propertyChangeSupport, VISIBLE_PROP
Constructor and Description |
---|
AbstractCachedTileSourceLayer(ImageryInfo info)
Creates an instance of class based on InageryInfo
|
Modifier and Type | Method and Description |
---|---|
private org.apache.commons.jcs.access.behavior.ICacheAccess<java.lang.String,BufferedImageCacheEntry> |
getCache() |
static org.apache.commons.jcs.access.CacheAccess<java.lang.String,BufferedImageCacheEntry> |
getCache(java.lang.String name) |
protected abstract java.lang.String |
getCacheName() |
protected int |
getDiskCacheSize() |
protected abstract java.lang.Class<? extends TileLoader> |
getTileLoaderClass() |
protected TileLoaderFactory |
getTileLoaderFactory() |
static TileLoaderFactory |
getTileLoaderFactory(java.lang.String name,
java.lang.Class<? extends TileLoader> klazz)
Returns tile loader factory for cache region and specified TileLoader class
|
static void |
setTileLoaderFactory(TileLoaderFactory newLoaderFactory)
Plugins that wish to set custom tile loader should call this method
|
actionSupportLayers, attachToMapView, checkMaxZoomLvl, checkMinZoomLvl, clearTileCache, createAndOpenSaveFileChooser, createDisplaySettings, createMapViewPainter, decreaseZoomLevel, destroy, displaySettingsChanged, downloadAreaToCache, estimateTileCacheSize, filterChanged, getAdjustAction, getBestZoom, getCommonEntries, getDisplaySettings, getHeaders, getInfoComponent, getLayerListEntries, getMaxZoomLvl, getMaxZoomLvl, getMenuEntries, getMinZoomLvl, getMinZoomLvl, getNativeProjections, getOffsetMenuEntries, getScaleFactor, getTileSet, getTileSource, getToolTipText, getZoomLevel, hookUpMapView, imageUpdate, increaseZoomLevel, initTileSource, isSavable, loadAllErrorTiles, loadAllTiles, paint, projectionChanged, registerMenuAddition, registerMenuAddition, setMaxZoomLvl, setMinZoomLvl, setZoomLevel, tileLoadingFinished, visitBoundingBox, zoomChanged, zoomDecreaseAllowed, zoomIncreaseAllowed
addImageProcessor, applyImageProcessors, create, createImageProcessor, createTextField, getFilterSettings, getIcon, getImageProcessors, getInfo, getOffsetMenuItem, getOffsetMenuItem, getPPD, isMergable, mergeFrom, removeImageProcessor, toString
addPropertyChangeListener, checkSaveConditions, fireFilterStateChanged, fireOpacityChanged, fireVisibleChanged, getAssociatedFile, getBaseColorProperty, getColorProperty, getDefaultLayerPosition, getName, getOpacity, getViewProjectionBounds, isBackgroundLayer, isInfoResizable, isProjectionSupported, isRenamed, isVisible, nameSupportedProjections, onPostLoadFromFile, removePropertyChangeListener, rename, setAssociatedFile, setBackgroundLayer, setFilterStateChanged, setName, setOpacity, setVisible, toggleVisible
addInvalidationListener, invalidate, removeInvalidationListener
private static java.util.Map<java.lang.String,TileLoaderFactory> loaderFactories
private static final java.lang.String PREFERENCE_PREFIX
private static volatile TileLoaderFactory loaderFactoryOverride
public static final IntegerProperty MAX_DISK_CACHE_SIZE
private org.apache.commons.jcs.access.behavior.ICacheAccess<java.lang.String,BufferedImageCacheEntry> cache
private volatile TileLoaderFactory loaderFactory
public AbstractCachedTileSourceLayer(ImageryInfo info)
info
- ImageryInfo describing the layerprotected TileLoaderFactory getTileLoaderFactory()
getTileLoaderFactory
in class AbstractTileSourceLayer<T extends AbstractTMSTileSource>
private org.apache.commons.jcs.access.behavior.ICacheAccess<java.lang.String,BufferedImageCacheEntry> getCache()
public static void setTileLoaderFactory(TileLoaderFactory newLoaderFactory)
newLoaderFactory
- that will be used to load tilespublic static TileLoaderFactory getTileLoaderFactory(java.lang.String name, java.lang.Class<? extends TileLoader> klazz)
name
- of the cache regionklazz
- type of the TileLoaderpublic static org.apache.commons.jcs.access.CacheAccess<java.lang.String,BufferedImageCacheEntry> getCache(java.lang.String name)
name
- of cache regionprotected abstract java.lang.Class<? extends TileLoader> getTileLoaderClass()
protected int getDiskCacheSize()
protected abstract java.lang.String getCacheName()