Package repast.simphony.gis.legend
Class LegendModel
java.lang.Object
javax.swing.tree.DefaultTreeModel
repast.simphony.gis.legend.LegendModel
- All Implemented Interfaces:
Serializable
,TreeModel
Deprecated.
2D piccolo based code is being removed
This is the data model for a legend representing a gis map. It consists of
categories and map layer elements.
- Version:
- $Revision: 1.20 $
- Author:
- $Author: howe $
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final Object
Deprecated.protected int
Deprecated.protected Map<org.geotools.map.Layer,
LegendLayerEntry> Deprecated.protected LegendEntry
Deprecated.protected Object
Deprecated.Fields inherited from class javax.swing.tree.DefaultTreeModel
asksAllowsChildren, listenerList
-
Constructor Summary
ConstructorDescriptionDeprecated.Create a new LegendModel using the default root object.LegendModel
(String title) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptioncreateLayerEntry
(org.geotools.map.Layer layer) Deprecated.Add a new gis data layer to the legend.void
initMapContext
(org.geotools.map.MapContent context) Deprecated.void
updateLayer
(org.geotools.map.Layer layer) Deprecated.When a GIS layer changes, for example because the style has been updated, update the legend nodes to reflect the new information.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
-
Field Details
-
root
Deprecated. -
iconWidth
protected int iconWidthDeprecated. -
DEFAULT_ROOT
Deprecated. -
rootObject
Deprecated. -
nodeMap
Deprecated.
-
-
Constructor Details
-
LegendModel
public LegendModel()Deprecated.Create a new LegendModel using the default root object. This will produce a LegendModel where the root is "Legend". -
LegendModel
Deprecated.
-
-
Method Details
-
initMapContext
public void initMapContext(org.geotools.map.MapContent context) Deprecated. -
createLayerEntry
Deprecated.Add a new gis data layer to the legend. The hierarchy should be defined by the objects specified in the category.- Parameters:
layer
- the layer to add- Returns:
- The node created for the layer.
-
updateLayer
public void updateLayer(org.geotools.map.Layer layer) Deprecated.When a GIS layer changes, for example because the style has been updated, update the legend nodes to reflect the new information.- Parameters:
layer
- the layer to update.
-