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 voidaddLayerName(String layerName)Objectclone()ImagecreateImage(LayerViewPanel panel)MapRequestcreateRequest(LayerViewPanel panel)intgetAlpha()BlackboardgetBlackboard()StringgetFormat()ListgetLayerNames()StringgetServerURL()WMServicegetService()StringgetSRS()voidremoveAllLayerNames()voidsetAlpha(int alpha)voidsetFormat(String format)voidsetServerURL(String serverURL)voidsetSRS(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:
clonein classObject- Throws:
CloneNotSupportedException
-
removeAllLayerNames
public void removeAllLayerNames()
-
getBlackboard
public Blackboard getBlackboard()
- Specified by:
getBlackboardin interfaceLayerable
-
getService
public WMService getService() throws IOException
- Throws:
IOException
-
getServerURL
public String getServerURL()
-
setServerURL
public void setServerURL(String serverURL)
-
-