|
deegree 2.2 (2008/12/22 11:33 build-3038-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deegree.portal.context.LayerList
public class LayerList
Constructor Summary | |
---|---|
LayerList(Layer[] layers)
Creates a new LayerList object. |
Method Summary | |
---|---|
void |
addLayer(Layer layer)
adds one layer to the the web map context. |
void |
addLayerToTop(Layer layer)
adds one layer to the top of the web map context. |
void |
clear()
removes all layers from the web map context |
Layer |
getLayer(String name)
Deprecated. use @see #getLayer(String, String) instead |
Layer |
getLayer(String name,
String serverAddress)
returns a layer identifies by its name and service address |
Layer[] |
getLayers()
returns all layers of the web map context |
Layer[] |
getLayersByNodeId(int id)
returns the layers of a node of the tree of the web map context |
void |
move(Layer layer,
boolean up)
moves a layer within the layer list up or down |
void |
move(Layer layer,
Layer beforeLayer)
moves a layer within the layer list before the beforeLayer |
void |
orderLayerListByLayerTree(Node root)
TODO: review this changed; it has been introduced as of TreeLayerView Portlet |
Layer |
removeLayer(String name)
Deprecated. use @see #removeLayer(String, String) instead |
Layer |
removeLayer(String name,
String serverAddress)
removes a layer identified by its name from the web map context |
void |
setLayers(Layer[] layers)
sets all layers of the web map context |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LayerList(Layer[] layers)
layers
- Method Detail |
---|
public Layer getLayer(String name)
name
- name ofthe layer
public Layer getLayer(String name, String serverAddress)
name
- name ofthe layerserverAddress
- address of the server which servers the layer
public Layer[] getLayers()
public void setLayers(Layer[] layers)
layers
- public Layer[] getLayersByNodeId(int id)
public void orderLayerListByLayerTree(Node root)
root
- public void addLayer(Layer layer)
layer
- public void addLayerToTop(Layer layer)
layer
- public Layer removeLayer(String name)
name
- name of the layer to be removed
public Layer removeLayer(String name, String serverAddress)
name
- name of the layer to be removedserverAddress
-
public void move(Layer layer, boolean up)
layer
- layer to be movedup
- if true the layer will be moved up otherwise
it will be moved down
PortalException
- will be thrown if the layer is not known
by the layer list.public void move(Layer layer, Layer beforeLayer)
layer
- layer to be movedbeforeLayer
- public void clear()
|
deegree 2.2 (2008/12/22 11:33 build-3038-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://deegree.sourceforge.net