Class WMSLayer
- java.lang.Object
-
- org.locationtech.jts.jump.workbench.model.AbstractLayerable
-
- org.locationtech.jts.jump.workbench.model.WMSLayer
-
public class WMSLayer extends AbstractLayerable implements Cloneable
A Layerable that retrieves images from a Web Map Server.
-
-
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)
int
getAlpha()
Blackboard
getBlackboard()
String
getFormat()
List
getLayerNames()
String
getServerURL()
WMService
getService()
String
getSRS()
void
removeAllLayerNames()
void
setAlpha(int alpha)
void
setFormat(String format)
void
setServerURL(String serverURL)
void
setSRS(String srs)
-
Methods inherited from class org.locationtech.jts.jump.workbench.model.AbstractLayerable
fireAppearanceChanged, fireLayerChanged, getLayerManager, getName, isVisible, setLayerManager, setName, setVisible, toString
-
-
-
-
Constructor Detail
-
WMSLayer
public WMSLayer()
Called by Java2XML
-
WMSLayer
public WMSLayer(LayerManager layerManager, String serverURL, String srs, List layerNames, String format) throws IOException
- Throws:
IOException
-
WMSLayer
public WMSLayer(LayerManager layerManager, WMService initializedService, String srs, List layerNames, String format) throws IOException
- Throws:
IOException
-
-
Method Detail
-
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)
-
getLayerNames
public List getLayerNames()
-
setSRS
public void setSRS(String srs)
-
getSRS
public String getSRS()
-
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
-
getService
public WMService getService() throws IOException
- Throws:
IOException
-
getServerURL
public String getServerURL()
-
setServerURL
public void setServerURL(String serverURL)
-
-