|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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(java.lang.String name)
Deprecated. use |
Layer |
getLayer(java.lang.String name,
java.lang.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)
|
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 |
moveNodes(int nodeID,
int beforeNodeID)
move all layers with parent nodeID befor the layers with parent beforeNodeID . |
void |
orderLayerListByLayerTree(Node root)
TODO: review this changed; it has been introduced as of TreeLayerView Portlet |
Layer |
removeLayer(java.lang.String name)
Deprecated. use #removeLayer(String, String) instead |
Layer |
removeLayer(java.lang.String name,
java.lang.String serverAddress)
removes a layer identified by its name from the web map context |
void |
removeLayers(int nodeID)
remove all layer with nodeID as parent node |
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 |
---|
@Deprecated public Layer getLayer(java.lang.String name)
name
- name ofthe layer
instead
public Layer getLayer(java.lang.String name, java.lang.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)
id
-
public void orderLayerListByLayerTree(Node root)
root
- public void addLayer(Layer layer)
layer
- public void addLayerToTop(Layer layer)
layer
- @Deprecated public Layer removeLayer(java.lang.String name)
name
- name of the layer to be removed
public Layer removeLayer(java.lang.String name, java.lang.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 downpublic void move(Layer layer, Layer beforeLayer)
layer
- layer to be movedbeforeLayer
- put the layer before this beforeLayer. If beforeLayer is null
move to bottom.public void moveNodes(int nodeID, int beforeNodeID)
nodeID
befor the layers with parent beforeNodeID
.
nodeID
- beforeNodeID
- public void clear()
public void removeLayers(int nodeID)
nodeID
as parent node
nodeID
-
|
deegree 2.5 (2011/06/29 09:44 build-8-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://www.deegree.org