public class WMSLayer extends AbstractCachedTileSourceLayer
Modifier and Type | Class and Description |
---|---|
class |
WMSLayer.BookmarkWmsAction
This action will add a WMS layer menu entry with the current WMS layer
URL and name extended by the current resolution.
|
AbstractTileSourceLayer.PrecacheTask
ImageryLayer.ApplyOffsetAction, ImageryLayer.GammaImageProcessor, ImageryLayer.OffsetAction
Layer.LayerAction, Layer.LayerGpxExportAction, Layer.LayerSaveAction, Layer.LayerSaveAsAction, Layer.MultiLayerAction, Layer.SeparatorLayerAction
Modifier and Type | Field and Description |
---|---|
private static String |
CACHE_REGION_NAME |
private static String |
PREFERENCE_PREFIX |
static BooleanProperty |
PROP_DEFAULT_AUTOZOOM
should WMS layer autozoom in default mode
|
static IntegerProperty |
PROP_IMAGE_SIZE
default tile size for WMS Layer
|
private Set<String> |
supportedProjections |
static IntegerProperty |
THREAD_LIMIT
limit of concurrent connections to WMS tile source (per source)
|
MAX_DISK_CACHE_SIZE
autoLoad, autoZoom, currentZoomLevel, MAX_ZOOM, MIN_ZOOM, PROP_DEFAULT_AUTOLOAD, PROP_DEFAULT_SHOWERRORS, PROP_MAX_ZOOM_LVL, PROP_MIN_ZOOM_LVL, showErrors, tileCache, tileLoader, tileSource, ZOOM_OFFSET
dx, dy, gammaImageProcessor, icon, info, PROP_FADE_AMOUNT, PROP_FADE_COLOR, PROP_SHARPEN_LEVEL
FILTER_STATE_PROP, ICON_SIZE, NAME_PROP, OPACITY_PROP, propertyChangeSupport, VISIBLE_PROP
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
WMSLayer(ImageryInfo info)
Constructs a new
WMSLayer . |
Modifier and Type | Method and Description |
---|---|
static org.apache.commons.jcs.access.CacheAccess<String,BufferedImageCacheEntry> |
getCache() |
protected String |
getCacheName() |
protected Map<String,String> |
getHeaders(TileSource tileSource) |
Action[] |
getMenuEntries()
Returns list of actions.
|
protected Class<? extends TileLoader> |
getTileLoaderClass() |
protected AbstractTMSTileSource |
getTileSource(ImageryInfo info) |
boolean |
isProjectionSupported(Projection proj)
allows to check whether a projection is supported or not
|
private boolean |
isReprojectionPossible() |
String |
nameSupportedProjections()
Specify user information about projections
|
void |
projectionChanged(Projection oldValue,
Projection newValue) |
getCache, getDiskCacheSize, getTileLoaderFactory, getTileLoaderFactory, setTileLoaderFactory
checkMaxZoomLvl, checkMinZoomLvl, clearTileCache, createAndOpenSaveFileChooser, decreaseZoomLevel, downloadAreaToCache, estimateMemoryUsage, estimateTileCacheSize, getBestZoom, getMaxZoomLvl, getMaxZoomLvl, getMinZoomLvl, getMinZoomLvl, getToolTipText, hookUpMapView, imageUpdate, increaseZoomLevel, initTileSource, isChanged, isSavable, loadAllErrorTiles, loadAllTiles, paint, redraw, setGamma, setMaxZoomLvl, setMinZoomLvl, setOffset, setZoomLevel, tileLoadingFinished, visitBoundingBox, zoomChanged, zoomDecreaseAllowed, zoomIncreaseAllowed
addImageProcessor, applyImageProcessors, create, createImageProcessor, createSharpener, destroy, displace, drawErrorTile, getDx, getDy, getFadeColor, getFadeColorWithAlpha, getGamma, getIcon, getImageProcessors, getInfo, getInfoComponent, getOffsetMenuItem, getOffsetMenuItem, getPPD, isMergable, mergeFrom, removeImageProcessor
addPropertyChangeListener, checkSaveConditions, fireFilterStateChanged, fireOpacityChanged, fireVisibleChanged, getAssociatedFile, getColor, getName, getOpacity, isBackgroundLayer, isInfoResizable, isVisible, onPostLoadFromFile, removePropertyChangeListener, setAssociatedFile, setBackgroundLayer, setFilterStateChanged, setName, setOpacity, setVisible, toggleVisible
private static final String PREFERENCE_PREFIX
public static final IntegerProperty PROP_IMAGE_SIZE
public static final BooleanProperty PROP_DEFAULT_AUTOZOOM
public static final IntegerProperty THREAD_LIMIT
private static final String CACHE_REGION_NAME
private final Set<String> supportedProjections
public WMSLayer(ImageryInfo info)
WMSLayer
.info
- ImageryInfo description of the layerpublic Action[] getMenuEntries()
Layer
Layer.SeparatorLayerAction.INSTANCE
instead of new JSeparatorgetMenuEntries
in class AbstractTileSourceLayer
protected AbstractTMSTileSource getTileSource(ImageryInfo info)
getTileSource
in class AbstractTileSourceLayer
info
- imagery infoprotected Map<String,String> getHeaders(TileSource tileSource)
getHeaders
in class AbstractTileSourceLayer
public boolean isProjectionSupported(Projection proj)
Layer
isProjectionSupported
in class Layer
proj
- projectionpublic String nameSupportedProjections()
Layer
nameSupportedProjections
in class Layer
public void projectionChanged(Projection oldValue, Projection newValue)
projectionChanged
in interface ProjectionChangeListener
projectionChanged
in class Layer
protected Class<? extends TileLoader> getTileLoaderClass()
getTileLoaderClass
in class AbstractCachedTileSourceLayer
protected String getCacheName()
getCacheName
in class AbstractCachedTileSourceLayer
public static org.apache.commons.jcs.access.CacheAccess<String,BufferedImageCacheEntry> getCache()
private boolean isReprojectionPossible()