deegree 2.5 (2011/06/29 09:44 build-8-official)

org.deegree.portal.context
Class MapModel

java.lang.Object
  extended by org.deegree.portal.context.MapModel

public class MapModel
extends java.lang.Object

TODO add class documentation here

Version:
$Revision: 21671 $, $Date: 2009-12-29 09:43:44 +0100 (Di, 29 Dez 2009) $
Author:
Andreas Poth, last edited by: $Author: apoth $

Constructor Summary
MapModel()
           
 
Method Summary
 java.util.List<LayerGroup> getLayerGroups()
           
 java.util.List<MMLayer> getLayersSelectedForAction(java.lang.String action)
           
 MapModelEntry getMapModelEntryByIdentifier(java.lang.String identifier)
           
 void insert(MapModelEntry mapModelEntry, LayerGroup parent, MapModelEntry antecessor, boolean first)
           
 void move(MapModelEntry mapModelEntry, LayerGroup parent, MapModelEntry antecessor, boolean first)
          moves the passed layer underneath a new parent and before the passed antecessor.
 void remove(MapModelEntry mapModelEntry)
           
 void setLayerGroups(java.util.List<LayerGroup> layerGroups)
           
 void walkLayerTree(MapModelVisitor visitor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapModel

public MapModel()
Method Detail

setLayerGroups

public void setLayerGroups(java.util.List<LayerGroup> layerGroups)
Parameters:
layerGroups -

getLayerGroups

public java.util.List<LayerGroup> getLayerGroups()
Returns:
the layerGroups

getLayersSelectedForAction

public java.util.List<MMLayer> getLayersSelectedForAction(java.lang.String action)
Parameters:
action -
Returns:
list of Layer selected for the passed action

insert

public void insert(MapModelEntry mapModelEntry,
                   LayerGroup parent,
                   MapModelEntry antecessor,
                   boolean first)
            throws java.lang.Exception
Parameters:
mapModelEntry - MapModelEntry to be inserted
parent - if null root node of layertree will be used as parent
antecessor - if null layer will be inserted directly underneath its parent
first - if true layer will be inserted as first layer of a group if antecessor == null
Throws:
java.lang.Exception

move

public void move(MapModelEntry mapModelEntry,
                 LayerGroup parent,
                 MapModelEntry antecessor,
                 boolean first)
moves the passed layer underneath a new parent and before the passed antecessor.

Parameters:
mapModelEntry -
parent - if null root node of layer tree will be used as parent
antecessor - if null layer will be inserted directly underneath its parent
first -

walkLayerTree

public void walkLayerTree(MapModelVisitor visitor)
                   throws java.lang.Exception
Parameters:
visitor -
Throws:
java.lang.Exception

getMapModelEntryByIdentifier

public MapModelEntry getMapModelEntryByIdentifier(java.lang.String identifier)
Parameters:
identifier -
Returns:
MapModelEntry matching passed identifier

remove

public void remove(MapModelEntry mapModelEntry)
Parameters:
mapModelEntry - MapModelEntry to remove

deegree 2.5 (2011/06/29 09:44 build-8-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org