public class WMSLayer extends AbstractCachedTileSourceLayer<AbstractWMSTileSource>
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.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 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.List<java.lang.String> |
serverProjections |
MAX_DISK_CACHE_SIZE
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 |
---|
WMSLayer(ImageryInfo info)
Constructs a new
WMSLayer . |
Modifier and Type | Method and Description |
---|---|
private Projection |
chooseProjection(Projection requested) |
protected TileSourceDisplaySettings |
createDisplaySettings()
This method creates the
TileSourceDisplaySettings object. |
static org.apache.commons.jcs.access.CacheAccess<java.lang.String,BufferedImageCacheEntry> |
getCache() |
protected java.lang.String |
getCacheName() |
javax.swing.Action[] |
getMenuEntries()
Returns list of actions.
|
java.util.Collection<java.lang.String> |
getNativeProjections()
Get projections this imagery layer supports natively.
|
protected java.lang.Class<? extends TileLoader> |
getTileLoaderClass() |
protected AbstractWMSTileSource |
getTileSource()
Creates and returns a new
TileSource instance depending on ImageryLayer.info specified in the constructor. |
void |
projectionChanged(Projection oldValue,
Projection newValue) |
private Projection |
selectProjection(Projection proj) |
getCache, getDiskCacheSize, getTileLoaderFactory, getTileLoaderFactory, setTileLoaderFactory
actionSupportLayers, attachToMapView, checkMaxZoomLvl, checkMinZoomLvl, clearTileCache, createAndOpenSaveFileChooser, createMapViewPainter, decreaseZoomLevel, destroy, displaySettingsChanged, estimateTileCacheSize, filterChanged, getAdjustAction, getBestZoom, getCommonEntries, getDisplaySettings, getDownloadAreaToCacheTask, getHeaders, getInfoComponent, getLayerListEntries, getMaxZoomLvl, getMaxZoomLvl, getMinZoomLvl, getMinZoomLvl, getOffsetMenuEntries, getScaleFactor, getTileSet, getToolTipText, getZoomLevel, hookUpMapView, imageUpdate, increaseZoomLevel, initTileSource, isSavable, loadAllErrorTiles, loadAllTiles, paint, registerMenuAddition, registerMenuAddition, setMaxZoomLvl, setMinZoomLvl, setZoomLevel, tileLoadingFinished, visitBoundingBox, zoomChanged, zoomDecreaseAllowed, zoomIncreaseAllowed
addImageProcessor, applyImageProcessors, create, createImageProcessor, createTextField, getChangesetSourceTag, 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 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 java.util.List<java.lang.String> serverProjections
public WMSLayer(ImageryInfo info)
WMSLayer
.info
- ImageryInfo description of the layerprotected TileSourceDisplaySettings createDisplaySettings()
AbstractTileSourceLayer
TileSourceDisplaySettings
object. Subclasses may implement it to e.g. change the prefix.createDisplaySettings
in class AbstractTileSourceLayer<AbstractWMSTileSource>
public javax.swing.Action[] getMenuEntries()
Layer
Layer.SeparatorLayerAction.INSTANCE
instead of new JSeparatorgetMenuEntries
in class AbstractTileSourceLayer<AbstractWMSTileSource>
protected AbstractWMSTileSource getTileSource()
AbstractTileSourceLayer
TileSource
instance depending on ImageryLayer.info
specified in the constructor.getTileSource
in class AbstractTileSourceLayer<AbstractWMSTileSource>
public java.util.Collection<java.lang.String> getNativeProjections()
AbstractTileSourceLayer
getNativeProjections
in class AbstractTileSourceLayer<AbstractWMSTileSource>
public void projectionChanged(Projection oldValue, Projection newValue)
projectionChanged
in interface ProjectionChangeListener
projectionChanged
in class AbstractTileSourceLayer<AbstractWMSTileSource>
private Projection chooseProjection(Projection requested)
private Projection selectProjection(Projection proj)
protected java.lang.Class<? extends TileLoader> getTileLoaderClass()
getTileLoaderClass
in class AbstractCachedTileSourceLayer<AbstractWMSTileSource>
protected java.lang.String getCacheName()
getCacheName
in class AbstractCachedTileSourceLayer<AbstractWMSTileSource>
public static org.apache.commons.jcs.access.CacheAccess<java.lang.String,BufferedImageCacheEntry> getCache()