Class WMSLayer
- java.lang.Object
-
- com.vividsolutions.jump.workbench.model.AbstractLayerable
-
- com.vividsolutions.jump.workbench.model.GeoReferencedLayerable
-
- com.vividsolutions.jump.workbench.model.WMSLayer
-
- All Implemented Interfaces:
Disposable
,Layerable
,LayerManagerProxy
,Cloneable
public class WMSLayer extends GeoReferencedLayerable implements Cloneable
A Layerable that retrieves images from a Web Map Server.
-
-
Constructor Summary
Constructors Constructor Description WMSLayer()
Called by Java2XMLWMSLayer(LayerManager layerManager, WMService initializedService, String srs, List<String> layerNames, String format)
WMSLayer(LayerManager layerManager, WMService initializedService, String srs, List<String> layerNames, String format, String version)
WMSLayer(LayerManager layerManager, String serverURL, String srs, List<String> layerNames, String format, String version)
WMSLayer(String title, LayerManager layerManager, WMService initializedService, String srs, List<String> layerNames, String format)
WMSLayer(String title, LayerManager layerManager, WMService initializedService, String srs, List<String> layerNames, String format, String version)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addLayerName(String layerName)
Object
clone()
Image
createImage(LayerViewPanel panel)
MapRequest
createRequest(LayerViewPanel panel)
void
dispose()
int
getAlpha()
String
getApiKeyNameAndValue()
Blackboard
getBlackboard()
org.locationtech.jts.geom.Envelope
getEnvelope()
String
getFormat()
List<String>
getLayerNames()
String
getMoreParameters()
String
getServerURL()
WMService
getService()
String
getSRS()
MapStyle
getStyle()
String
getWmsVersion()
protected void
init()
void
removeAllLayerNames()
void
setAlpha(int alpha)
void
setApiKeyNameAndValue(String apiKeyNameAndValue)
void
setFormat(String format)
void
setLayerNames(List<String> list)
void
setMoreParameters(String moreParameters)
void
setServerURL(String serverURL)
void
setService(WMService service)
void
setSRS(String srs)
void
setStyle(MapStyle style)
void
setWmsVersion(String wmsVersion)
-
Methods inherited from class com.vividsolutions.jump.workbench.model.GeoReferencedLayerable
getSrsInfo, setEnvelope, setSrsInfo
-
Methods inherited from class com.vividsolutions.jump.workbench.model.AbstractLayerable
fireAppearanceChanged, fireLayerChanged, getLayerManager, getMaxScale, getMinScale, getName, getTask, isEditable, isReadonly, isScaleDependentRenderingEnabled, isSelectable, isVisible, setEditable, setLayerManager, setMaxScale, setMinScale, setName, setReadonly, setScaleDependentRenderingEnabled, setSelectable, setVisible, toString
-
-
-
-
Constructor Detail
-
WMSLayer
public WMSLayer()
Called by Java2XML
-
WMSLayer
public WMSLayer(LayerManager layerManager, String serverURL, String srs, List<String> layerNames, String format, String version) throws IOException
- Throws:
IOException
-
WMSLayer
public WMSLayer(LayerManager layerManager, WMService initializedService, String srs, List<String> layerNames, String format) throws IOException
- Throws:
IOException
-
WMSLayer
public WMSLayer(String title, LayerManager layerManager, WMService initializedService, String srs, List<String> layerNames, String format) throws IOException
- Throws:
IOException
-
WMSLayer
public WMSLayer(String title, LayerManager layerManager, WMService initializedService, String srs, List<String> layerNames, String format, String version)
-
-
Method Detail
-
init
protected void init()
-
setService
public void setService(WMService service)
-
getAlpha
public int getAlpha()
-
setAlpha
public void setAlpha(int alpha)
- Parameters:
alpha
- 0-255 (255 is opaque)
-
createImage
public Image createImage(LayerViewPanel panel) throws IOException
- Throws:
IOException
-
createRequest
public MapRequest createRequest(LayerViewPanel panel) throws IOException
- Throws:
IOException
-
getFormat
public String getFormat()
-
setFormat
public void setFormat(String format)
-
addLayerName
public void addLayerName(String layerName)
-
setSRS
public void setSRS(String srs)
-
getSRS
public String getSRS()
-
getStyle
public MapStyle getStyle()
-
setStyle
public void setStyle(MapStyle style)
-
getMoreParameters
public String getMoreParameters()
-
setMoreParameters
public void setMoreParameters(String moreParameters)
-
getApiKeyNameAndValue
public String getApiKeyNameAndValue()
-
setApiKeyNameAndValue
public void setApiKeyNameAndValue(String apiKeyNameAndValue)
-
clone
public Object clone() throws CloneNotSupportedException
- Overrides:
clone
in classObject
- Throws:
CloneNotSupportedException
-
removeAllLayerNames
public void removeAllLayerNames()
-
getBlackboard
public Blackboard getBlackboard()
- Specified by:
getBlackboard
in interfaceLayerable
- Overrides:
getBlackboard
in classGeoReferencedLayerable
-
getService
public WMService getService() throws IOException
- Throws:
IOException
-
getServerURL
public String getServerURL()
-
setServerURL
public void setServerURL(String serverURL)
-
getWmsVersion
public String getWmsVersion()
-
setWmsVersion
public void setWmsVersion(String wmsVersion)
-
getEnvelope
public org.locationtech.jts.geom.Envelope getEnvelope()
- Overrides:
getEnvelope
in classGeoReferencedLayerable
-
dispose
public void dispose()
- Specified by:
dispose
in interfaceDisposable
-
-