T - Tile Source class used by this Imagery Layerpublic abstract class AbstractCachedTileSourceLayer<T extends AbstractTMSTileSource> extends AbstractTileSourceLayer<T>
AbstractTileSourceLayer.PrecacheTask, AbstractTileSourceLayer.TileSourceLayerPopupImageryLayer.ApplyOffsetAction, ImageryLayer.ColorfulImageProcessor, ImageryLayer.GammaImageProcessor, ImageryLayer.OffsetAction, ImageryLayer.SharpenImageProcessorLayer.LayerAction, Layer.LayerGpxExportAction, Layer.LayerSaveAction, Layer.LayerSaveAsAction, Layer.MultiLayerAction, Layer.SeparatorLayerActionAbstractMapViewPaintable.CompatibilityModeLayerPainterMapViewPaintable.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 |
autoLoad, autoZoom, currentZoomLevel, MAX_ZOOM, MIN_ZOOM, PROP_DEFAULT_AUTOLOAD, PROP_DEFAULT_AUTOZOOM, PROP_DEFAULT_SHOWERRORS, PROP_MAX_ZOOM_LVL, PROP_MIN_ZOOM_LVL, showErrors, tileCache, tileLoader, tileSource, ZOOM_OFFSETcollorfulnessImageProcessor, dx, dy, gammaImageProcessor, icon, info, PROP_FADE_AMOUNT, PROP_FADE_COLOR, PROP_SHARPEN_LEVEL, sharpenImageProcessorFILTER_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
|
attachToMapView, checkMaxZoomLvl, checkMinZoomLvl, clearTileCache, createAndOpenSaveFileChooser, createMapViewPainter, decreaseZoomLevel, downloadAreaToCache, estimateMemoryUsage, estimateTileCacheSize, getBestZoom, getCommonEntries, getHeaders, getLayerListEntries, getMaxZoomLvl, getMaxZoomLvl, getMenuEntries, getMinZoomLvl, getMinZoomLvl, getTileSource, getToolTipText, hookUpMapView, imageUpdate, increaseZoomLevel, initTileSource, isChanged, isSavable, loadAllErrorTiles, loadAllTiles, paint, redraw, setColorfulness, setGamma, setMaxZoomLvl, setMinZoomLvl, setOffset, setSharpenLevel, setZoomLevel, tileLoadingFinished, visitBoundingBox, zoomChanged, zoomDecreaseAllowed, zoomIncreaseAllowedaddImageProcessor, applyImageProcessors, create, createImageProcessor, destroy, displace, getColorfulness, getDx, getDy, getFadeColor, getFadeColorWithAlpha, getGamma, getIcon, getImageProcessors, getInfo, getInfoComponent, getOffsetMenuItem, getOffsetMenuItem, getPPD, getSharpenLevel, isMergable, mergeFrom, removeImageProcessoraddPropertyChangeListener, checkLayerMemoryDoesNotExceedMaximum, checkSaveConditions, fireFilterStateChanged, fireOpacityChanged, fireVisibleChanged, getAssociatedFile, getColor, getDefaultLayerPosition, getName, getOpacity, getViewProjectionBounds, isBackgroundLayer, isInfoResizable, isProjectionSupported, isRenamed, isVisible, nameSupportedProjections, onPostLoadFromFile, projectionChanged, removePropertyChangeListener, rename, setAssociatedFile, setBackgroundLayer, setFilterStateChanged, setName, setOpacity, setVisible, toggleVisibleaddInvalidationListener, invalidate, removeInvalidationListenerprivate 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()