public class MapLayer
extends java.lang.Object
Constructor and Description |
---|
MapLayer(java.lang.String name,
java.lang.String title,
java.util.Collection srsList,
java.util.Collection subLayers,
BoundingBox bbox)
Creates a new instance of MapLayer
|
MapLayer(java.lang.String name,
java.lang.String title,
java.util.Collection srsList,
java.util.Collection subLayers,
BoundingBox bbox,
java.util.ArrayList<BoundingBox> boundingBoxList)
Creates a new instance of MapLayer with boundingBoxList [uwe dalluege]
|
Modifier and Type | Method and Description |
---|---|
java.util.ArrayList |
getAllBoundingBoxList() |
BoundingBox |
getBoundingBox()
Gets the LatLonBoundingBox for this layer.
|
BoundingBox |
getBoundingBox(java.lang.String srs)
Return the bounding box defined for this MapLayer in this SRS.
|
static com.vividsolutions.jts.geom.Envelope |
getBoundingBox(java.lang.String srs,
MapLayer lyr,
com.vividsolutions.jts.geom.Envelope env)
Return the envelope of this layer in the wished srs if a BoundingBox in
this srs exists.
|
java.util.ArrayList<BoundingBox> |
getBoundingBoxList()
Gets the BoundingBoxList for this Layer
|
java.util.Collection |
getFullSRSList() |
BoundingBox |
getLatLonBoundingBox()
I think this name is better [uwe dalluege]
Gets the LatLonBoundingBox for this layer.
|
java.util.ArrayList |
getLayerList()
Returns a list of all the layers in order of a root-left-right traversal of
the layer tree.
|
java.lang.String |
getName()
Gets the name of this Layer.
|
MapLayer |
getParent()
Gets the parent MapLayer of this MapLayer.
|
java.util.ArrayList |
getSRSList()
Returns a copy of the list of supported SRS's.
|
MapLayer |
getSubLayer(int n)
Returns the sub-layer at the specified index.
|
java.util.ArrayList<MapLayer> |
getSubLayerList()
Gets a copy of the list of the sublayers of this layer.
|
java.lang.String |
getTitle()
Gets the title of this MapLayer.
|
int |
numSubLayers()
Returns the number of sub-layers that this MapLayer has.
|
java.lang.String |
toString()
Returns a somewhat nicely-formatted string representing all of the details of
this layer and its sub-layers (recursively).
|
public MapLayer(java.lang.String name, java.lang.String title, java.util.Collection srsList, java.util.Collection subLayers, BoundingBox bbox)
public MapLayer(java.lang.String name, java.lang.String title, java.util.Collection srsList, java.util.Collection subLayers, BoundingBox bbox, java.util.ArrayList<BoundingBox> boundingBoxList)
public java.util.ArrayList getAllBoundingBoxList()
public int numSubLayers()
public MapLayer getSubLayer(int n)
n
- the index of the sub-layer to returnpublic java.util.ArrayList<MapLayer> getSubLayerList()
public java.util.ArrayList getLayerList()
public java.lang.String getTitle()
public java.lang.String getName()
public MapLayer getParent()
public BoundingBox getBoundingBox()
public BoundingBox getBoundingBox(java.lang.String srs)
public static com.vividsolutions.jts.geom.Envelope getBoundingBox(java.lang.String srs, MapLayer lyr, com.vividsolutions.jts.geom.Envelope env)
public BoundingBox getLatLonBoundingBox()
public java.util.ArrayList<BoundingBox> getBoundingBoxList()
public java.util.ArrayList getSRSList()
public java.util.Collection getFullSRSList()
public java.lang.String toString()
toString
in class java.lang.Object