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
Deprecated.
2D piccolo based code is being removed
- See Also:
-
Field Summary
Fields inherited from class javax.swing.tree.DefaultTreeModel
asksAllowsChildren, listenerList
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Deprecated.Add a layer into the manager.void
Deprecated.Add the path into the hierarchy.getChildren
(Object... path) Deprecated.Return the non-leaf objects at the specified path.Collection<org.geotools.map.Layer>
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
-
Constructor Details
-
DefaultLayerManager
public DefaultLayerManager()Deprecated.
-
-
Method Details
-
addLayer
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
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
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
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
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
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.
-