ilog.views.maps.format.wms
Class IlvWMSLayerNode

java.lang.Object
  extended by javax.swing.tree.DefaultMutableTreeNode
      extended by ilog.views.maps.format.wms.IlvWMSLayerNode
All Implemented Interfaces:
Serializable, Cloneable, MutableTreeNode, TreeNode

public class IlvWMSLayerNode
extends DefaultMutableTreeNode

A DefaultMutableTreeNode that hold informations about layers available from a OpenGIS compliant server.

Since:
JViews 8.0
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
 
Method Summary
 void addRS(String rs)
          Adds an SRS name to the available SRS for this layer.
 void addStyle(HashMap style)
          Adds a style name to the available styles for this layer.
 String[] getAvailableRS()
          Retrieves the available SRS names for this layer.
 String[] getAvailableStyles()
          Retrieves the available style names for this layer.
 float[] getLatLonBoundingBox()
          Retrieves the lat/lon bounding box for this layer.
 double getMaxScale()
          Returns the maximum scale at which the layer is visible.
 double getMinScale()
          Returns the minimum scale at which the layer is visible.
 String getName()
          < Retrieves the name of this layer.
 String getTitle()
          Retrieves the title of this layer.
 boolean isRSSupported(String rs)
          Indicates if the given reference system is supported by this layer.
 void setLatLonBoundingBox(float minx, float miny, float maxx, float maxy)
          Sets the bounding box int lat/lon for this layer.
 String toString()
          
 
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

setLatLonBoundingBox

public void setLatLonBoundingBox(float minx,
                                 float miny,
                                 float maxx,
                                 float maxy)
Sets the bounding box int lat/lon for this layer.

Parameters:
minx - The min longitude.
miny - The min latitude.
maxx - The max longitude.
maxy - The max latitude.

getLatLonBoundingBox

public float[] getLatLonBoundingBox()
Retrieves the lat/lon bounding box for this layer. If the bounding box is not available directly from this node, the bounding box is searched in the parent layers, if any.

Returns:
The bounding box of this layer in lat/lon coordinates.

toString

public String toString()

Overrides:
toString in class DefaultMutableTreeNode

addStyle

public void addStyle(HashMap style)
Adds a style name to the available styles for this layer.

Parameters:
style - The style name to add.

getAvailableStyles

public String[] getAvailableStyles()
Retrieves the available style names for this layer.

Returns:
The available styles for this layer.

addRS

public void addRS(String rs)
Adds an SRS name to the available SRS for this layer.

Parameters:
rs - The SRS name to add.

getAvailableRS

public String[] getAvailableRS()
Retrieves the available SRS names for this layer.

Returns:
The available SRS for this layer.

getName

public String getName()
< Retrieves the name of this layer.

Returns:
The name of this layer.

getTitle

public String getTitle()
Retrieves the title of this layer.

Returns:
The title of this layer.

getMinScale

public double getMinScale()
Returns the minimum scale at which the layer is visible.

Returns:
The minimum scale at which the layer is visible or 0 if no minimum scale has been specified.

getMaxScale

public double getMaxScale()
Returns the maximum scale at which the layer is visible.

Returns:
The maximum scale at which the layer is visible or 0 if no maximum scale has been specified.

isRSSupported

public boolean isRSSupported(String rs)
Indicates if the given reference system is supported by this layer.

Parameters:
rs - The reference system to check.
Returns:
Returns true if supported, otherwise false.


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.