|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectes.prodevelop.gvsig.mobile.fmap.driver.raster.wms.WMSLayerDescription
This class keeps information about a single WMS layer. It is used after a getCapabilities request, to manage capabilities data in a tree-like data model.
WMSProtocolHandler
,
WmsRasterDriver
Constructor Summary | |
WMSLayerDescription(int lvl,
WMSLayerDescription p)
Constructor |
Method Summary | |
void |
addChild(WMSLayerDescription c)
Adds a child to this layer description (used while the capabilities response is being parsed) |
void |
addCRS(java.lang.String srs,
java.awt.geom.Rectangle2D ext)
Adds a new SRS, indicating that this layer is also available in that SRS |
java.lang.String |
appendUseful(java.lang.String str)
Recursively adds useful ID to the provided string. |
void |
clearSRS()
Clears the list of available SRS |
void |
delete()
This method recursively calls to the same method of the node's children. |
java.lang.String[] |
getAvailableSRS()
|
WMSLayerDescription |
getChild(int i)
Gets child description by index |
int |
getChildrenCount()
|
java.awt.geom.Rectangle2D |
getExtentForSRS(java.lang.String srs)
Gets the extent of this layer for the given SRS |
java.lang.String |
getLayerId()
|
java.lang.String |
getLayerName()
|
int |
getLevel()
|
void |
increaseExtentForSRS(java.lang.String srs,
java.awt.geom.Rectangle2D ext)
Increase the extent of this layer to include the provided rectangle. |
boolean |
isInfoable()
|
boolean |
isSelected()
|
void |
parse(org.kxml2.io.KXmlParser parser,
boolean layer_found)
This method recursively parses the layers section of the capabilities response. |
int |
parseAsRoot(org.kxml2.io.KXmlParser parser)
Starts the parsing process assuming that this object represents the root layer. |
void |
setInfoable(boolean b)
Sets whether or not this layer is infoable (according to the response received after a get capabilities request. |
void |
setLayerId(java.lang.String i)
Set the layer ID |
void |
setLayerName(java.lang.String n)
Sets the layer name |
void |
setSelected(boolean s,
boolean tell_children)
Set the associated checkbox to a value, possibly acting recursively on children nodes. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public WMSLayerDescription(int lvl, WMSLayerDescription p)
lvl
- depth level of this layerp
- parent layer (parent node in the tree)Method Detail |
public void delete()
public java.lang.String appendUseful(java.lang.String str)
str
- the string to append useful IDS to.
public boolean isSelected()
public void setSelected(boolean s, boolean tell_children)
s
- the new value for the check box.tell_children
- whether the children nodes have to be reset or not.public int getLevel()
public void setInfoable(boolean b)
b
- whether or not this layer is infoablepublic boolean isInfoable()
public java.lang.String getLayerName()
public void setLayerName(java.lang.String n)
n
- the layer name (not to be confused with layer ID)public java.lang.String getLayerId()
public void setLayerId(java.lang.String i)
i
- the layer IDpublic java.lang.String[] getAvailableSRS()
public java.awt.geom.Rectangle2D getExtentForSRS(java.lang.String srs)
srs
- the abbreviation of the SRS of interest
public void addChild(WMSLayerDescription c)
c
- the new child to be addedpublic void addCRS(java.lang.String srs, java.awt.geom.Rectangle2D ext)
srs
- the new SRS to be addedext
- the extent of the layer in the provided SRSpublic void increaseExtentForSRS(java.lang.String srs, java.awt.geom.Rectangle2D ext)
srs
- the SRS that the extent refers toext
- the new rectangle to be included
in the extent associated with the provided SRSpublic void clearSRS()
public void parse(org.kxml2.io.KXmlParser parser, boolean layer_found) throws java.io.IOException, org.xmlpull.v1.XmlPullParserException
parser
- the parserlayer_found
- whether a layer description is right
ahead of the current position of the parser
java.io.IOException
org.xmlpull.v1.XmlPullParserException
public int parseAsRoot(org.kxml2.io.KXmlParser parser) throws java.io.IOException, org.xmlpull.v1.XmlPullParserException
parser
- the parser
java.io.IOException
org.xmlpull.v1.XmlPullParserException
public int getChildrenCount()
public WMSLayerDescription getChild(int i)
i
- the idnex of the child of interest
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |