Package repast.simphony.gis.legend
Class DefaultLayerManager
- java.lang.Object
-
- javax.swing.tree.DefaultTreeModel
-
- repast.simphony.gis.legend.DefaultLayerManager
-
- All Implemented Interfaces:
Serializable
,TreeModel
,LayerManager
public class DefaultLayerManager extends DefaultTreeModel implements LayerManager
Deprecated.2D piccolo based code is being removed- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class javax.swing.tree.DefaultTreeModel
asksAllowsChildren, listenerList
-
-
Constructor Summary
Constructors Constructor Description DefaultLayerManager()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
addLayer(org.geotools.map.Layer layer, Object... path)
Deprecated.Add a layer into the manager.void
addPath(Object... path)
Deprecated.Add the path into the hierarchy.Collection<Object>
getChildren(Object... path)
Deprecated.Return the non-leaf objects at the specified path.Collection<org.geotools.map.Layer>
getLayers(Object... path)
Deprecated.Get the layers that exist exactly at the path specified.void
removeLayer(org.geotools.map.Layer layer, Object... path)
Deprecated.Remove the layer that is at the supplied path.void
removePath(Object... path)
Deprecated.Remove the child object from the specified path.-
Methods inherited from class javax.swing.tree.DefaultTreeModel
addTreeModelListener, asksAllowsChildren, fireTreeNodesChanged, fireTreeNodesInserted, fireTreeNodesRemoved, fireTreeStructureChanged, getChild, getChildCount, getIndexOfChild, getListeners, getPathToRoot, getPathToRoot, getRoot, getTreeModelListeners, insertNodeInto, isLeaf, nodeChanged, nodesChanged, nodeStructureChanged, nodesWereInserted, nodesWereRemoved, reload, reload, removeNodeFromParent, removeTreeModelListener, setAsksAllowsChildren, setRoot, valueForPathChanged
-
-
-
-
Method Detail
-
addLayer
public void addLayer(org.geotools.map.Layer layer, Object... path)
Deprecated.Description copied from interface:LayerManager
Add a layer into the manager. The path will be defined hierarchically based on the series of Objects passed in as the path.- Specified by:
addLayer
in interfaceLayerManager
- Parameters:
layer
- The layer to be managed.path
- The hierarchical path that describes the location of the layer.
-
addPath
public void addPath(Object... path)
Deprecated.Description copied from interface:LayerManager
Add the path into the hierarchy.- Specified by:
addPath
in interfaceLayerManager
- Parameters:
path
- The path to add to the hierarchy
-
getChildren
public Collection<Object> getChildren(Object... path)
Deprecated.Description copied from interface:LayerManager
Return the non-leaf objects at the specified path.- Specified by:
getChildren
in interfaceLayerManager
- Parameters:
path
- The hierarchical path that describes the location of the layer.- Returns:
- The non-leaf children of the node defined by path.
-
getLayers
public Collection<org.geotools.map.Layer> getLayers(Object... path)
Deprecated.Description copied from interface:LayerManager
Get the layers that exist exactly at the path specified. This will not recursively get the layers.- Specified by:
getLayers
in interfaceLayerManager
- Parameters:
path
- The hierarchical path that describes the location of the layer.- Returns:
- The layers at the path.
-
removeLayer
public void removeLayer(org.geotools.map.Layer layer, Object... path)
Deprecated.Description copied from interface:LayerManager
Remove the layer that is at the supplied path.- Specified by:
removeLayer
in interfaceLayerManager
- Parameters:
layer
- The layer to be managed.path
- The hierarchical path that describes the location of the layer.
-
removePath
public void removePath(Object... path)
Deprecated.Description copied from interface:LayerManager
Remove the child object from the specified path. This will remove all children of the specified child as well.- Specified by:
removePath
in interfaceLayerManager
- Parameters:
path
- The parent path of the child to be removed.
-
-