org.gvsig.remoteclient.wms
Class WMSStatus

java.lang.Object
  extended by org.gvsig.remoteclient.RemoteClientStatus
      extended by org.gvsig.remoteclient.wms.WMSStatus

public class WMSStatus
extends RemoteClientStatus

Describes the status of a WMSclient, so it adds to the Remote client status a list of layers, a list of layer styles, the extent of the map. Provides the functionality to modify these lists.


Constructor Summary
WMSStatus()
           
 
Method Summary
 void addLayerName(java.lang.String _layerName)
           Adds a layer to the list of layers required by the WMS client
 void addStyleName(java.lang.String _name)
          Adds a style name to the styles list required by the WMS client
 java.lang.Object clone()
           
 boolean equals(java.lang.Object obj)
           
 java.util.Vector getDimensions()
           
 java.awt.geom.Rectangle2D getExtent()
          Gets the extent defined by the map
 java.util.Vector getLayerNames()
          Retrieves the layer list required by the WMS client
 java.lang.String getOnlineResource()
          Returns the URL that the server specified for a WMS request if any was described in its capabilities document.
 java.util.Vector getStyles()
          gets the styles list required by the WMS client
 boolean getTransparency()
           
 boolean isProjected()
           
 boolean removeLayerName(java.lang.String _layerName)
          removes a layer from the layer list
 boolean removeStyleName(java.lang.String _name)
          Removes a style from the list of styles required by the WMS client
 void setDimensions(java.util.Vector _dimensions)
          sets the styles list required by the WMS client
 void setExtent(java.awt.geom.Rectangle2D extent)
          Sets the extent defined by the map
 void setLayerNames(java.util.Vector _layers)
           
 void setOnlineResource(java.lang.String url)
          Sets the string literal containing the URL of an online resource for a specific WMS request.
 void setProjected(boolean projected)
           
 void setStyles(java.util.Vector _styles)
          sets the styles list required by the WMS client
 void setTransparency(boolean wmsTransparency)
           
 
Methods inherited from class org.gvsig.remoteclient.RemoteClientStatus
getExceptionFormat, getFormat, getHeight, getInfoFormat, getProtocol, getSrs, getWidth, setExceptionFormat, setFormat, setHeight, setInfoFormat, setProtocol, setSrs, setWidth
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WMSStatus

public WMSStatus()
Method Detail

setLayerNames

public void setLayerNames(java.util.Vector _layers)

getLayerNames

public java.util.Vector getLayerNames()

Retrieves the layer list required by the WMS client

Returns:
Vector, the list of layers

addLayerName

public void addLayerName(java.lang.String _layerName)

Adds a layer to the list of layers required by the WMS client

Parameters:
_layerName, - name of the layer to be added.

removeLayerName

public boolean removeLayerName(java.lang.String _layerName)

removes a layer from the layer list

Parameters:
_layerName -
Returns:
true if the layer name has been deleted from the list

getStyles

public java.util.Vector getStyles()

gets the styles list required by the WMS client

Returns:
Vector with the list of layer styles

setStyles

public void setStyles(java.util.Vector _styles)

sets the styles list required by the WMS client

Parameters:
_styles, - list to be set as the required styles.

setDimensions

public void setDimensions(java.util.Vector _dimensions)

sets the styles list required by the WMS client

Parameters:
_styles, - list to be set as the required styles.

addStyleName

public void addStyleName(java.lang.String _name)

Adds a style name to the styles list required by the WMS client

Parameters:
_name, - style name to be added

removeStyleName

public boolean removeStyleName(java.lang.String _name)

Removes a style from the list of styles required by the WMS client

Parameters:
_name, - style name to be removed

getExtent

public java.awt.geom.Rectangle2D getExtent()

Gets the extent defined by the map


setExtent

public void setExtent(java.awt.geom.Rectangle2D extent)

Sets the extent defined by the map


getTransparency

public boolean getTransparency()
Returns:

setTransparency

public void setTransparency(boolean wmsTransparency)
Parameters:
wmsTransparency -

getDimensions

public java.util.Vector getDimensions()
Returns:

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

getOnlineResource

public java.lang.String getOnlineResource()
Returns the URL that the server specified for a WMS request if any was described in its capabilities document.

Parameters:
operationName, - a String containing the name of the operation (case-independent)
Returns:
String containing the URL for this operationName or null if none was specified.

setOnlineResource

public void setOnlineResource(java.lang.String url)
Sets the string literal containing the URL of an online resource for a specific WMS request.

Parameters:
operationName, - String telling to which request correspond the address
url, - String containing the URL for the given WMS request

isProjected

public boolean isProjected()

setProjected

public void setProjected(boolean projected)


Copyright © 2004-2013 gvSIG. All Rights Reserved.