public class WMSLayer extends AbstractCachedTileSourceLayer<TemplatedWMSTileSource>
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, AbstractTileSourceLayer.TileSourceLayerPopup
ImageryLayer.ApplyOffsetAction, ImageryLayer.ColorfulImageProcessor, ImageryLayer.GammaImageProcessor, ImageryLayer.OffsetAction, ImageryLayer.SharpenImageProcessor
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 static java.lang.String |
CACHE_REGION_NAME |
private static java.lang.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 java.util.Set<java.lang.String> |
supportedProjections |
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
collorfulnessImageProcessor, dx, dy, gammaImageProcessor, icon, info, PROP_FADE_AMOUNT, PROP_FADE_COLOR, PROP_SHARPEN_LEVEL, sharpenImageProcessor
FILTER_STATE_PROP, NAME_PROP, OPACITY_PROP, propertyChangeSupport, VISIBLE_PROP
Constructor and Description |
---|
WMSLayer(ImageryInfo info)
Constructs a new
WMSLayer . |
Modifier and Type | Method and Description |
---|---|
static org.apache.commons.jcs.access.CacheAccess<java.lang.String,BufferedImageCacheEntry> |
getCache() |
protected java.lang.String |
getCacheName() |
protected java.util.Map<java.lang.String,java.lang.String> |
getHeaders(TemplatedWMSTileSource tileSource) |
javax.swing.Action[] |
getMenuEntries()
Returns list of actions.
|
protected java.lang.Class<? extends TileLoader> |
getTileLoaderClass() |
protected TemplatedWMSTileSource |
getTileSource(ImageryInfo info) |
boolean |
isProjectionSupported(Projection proj)
allows to check whether a projection is supported or not
|
private boolean |
isReprojectionPossible() |
java.lang.String |
nameSupportedProjections()
Specify user information about projections
|
void |
projectionChanged(Projection oldValue,
Projection newValue) |
getCache, getDiskCacheSize, getTileLoaderFactory, getTileLoaderFactory, setTileLoaderFactory
attachToMapView, checkMaxZoomLvl, checkMinZoomLvl, clearTileCache, createAndOpenSaveFileChooser, createMapViewPainter, decreaseZoomLevel, downloadAreaToCache, estimateMemoryUsage, estimateTileCacheSize, getBestZoom, getCommonEntries, getLayerListEntries, getMaxZoomLvl, getMaxZoomLvl, getMinZoomLvl, getMinZoomLvl, getToolTipText, hookUpMapView, imageUpdate, increaseZoomLevel, initTileSource, isChanged, isSavable, loadAllErrorTiles, loadAllTiles, paint, redraw, setColorfulness, setGamma, setMaxZoomLvl, setMinZoomLvl, setOffset, setSharpenLevel, setZoomLevel, tileLoadingFinished, visitBoundingBox, zoomChanged, zoomDecreaseAllowed, zoomIncreaseAllowed
addImageProcessor, applyImageProcessors, create, createImageProcessor, destroy, displace, getColorfulness, getDx, getDy, getFadeColor, getFadeColorWithAlpha, getGamma, getIcon, getImageProcessors, getInfo, getInfoComponent, getOffsetMenuItem, getOffsetMenuItem, getPPD, getSharpenLevel, isMergable, mergeFrom, removeImageProcessor
addPropertyChangeListener, checkLayerMemoryDoesNotExceedMaximum, checkSaveConditions, fireFilterStateChanged, fireOpacityChanged, fireVisibleChanged, getAssociatedFile, getColor, getDefaultLayerPosition, getName, getOpacity, getViewProjectionBounds, isBackgroundLayer, isInfoResizable, isRenamed, isVisible, onPostLoadFromFile, removePropertyChangeListener, rename, setAssociatedFile, setBackgroundLayer, setFilterStateChanged, setName, setOpacity, setVisible, toggleVisible
addInvalidationListener, invalidate, removeInvalidationListener
private static final java.lang.String PREFERENCE_PREFIX
public static final IntegerProperty PROP_IMAGE_SIZE
public static final BooleanProperty PROP_DEFAULT_AUTOZOOM
private static final java.lang.String CACHE_REGION_NAME
private final java.util.Set<java.lang.String> supportedProjections
public WMSLayer(ImageryInfo info)
WMSLayer
.info
- ImageryInfo description of the layerpublic javax.swing.Action[] getMenuEntries()
Layer
Layer.SeparatorLayerAction.INSTANCE
instead of new JSeparatorgetMenuEntries
in class AbstractTileSourceLayer<TemplatedWMSTileSource>
protected TemplatedWMSTileSource getTileSource(ImageryInfo info)
getTileSource
in class AbstractTileSourceLayer<TemplatedWMSTileSource>
info
- imagery infoprotected java.util.Map<java.lang.String,java.lang.String> getHeaders(TemplatedWMSTileSource tileSource)
getHeaders
in class AbstractTileSourceLayer<TemplatedWMSTileSource>
public boolean isProjectionSupported(Projection proj)
Layer
isProjectionSupported
in class Layer
proj
- projectionpublic java.lang.String nameSupportedProjections()
Layer
nameSupportedProjections
in class Layer
public void projectionChanged(Projection oldValue, Projection newValue)
projectionChanged
in interface ProjectionChangeListener
projectionChanged
in class Layer
protected java.lang.Class<? extends TileLoader> getTileLoaderClass()
getTileLoaderClass
in class AbstractCachedTileSourceLayer<TemplatedWMSTileSource>
protected java.lang.String getCacheName()
getCacheName
in class AbstractCachedTileSourceLayer<TemplatedWMSTileSource>
public static org.apache.commons.jcs.access.CacheAccess<java.lang.String,BufferedImageCacheEntry> getCache()
private boolean isReprojectionPossible()