Class LegendModel

java.lang.Object
javax.swing.tree.DefaultTreeModel
repast.simphony.gis.legend.LegendModel
All Implemented Interfaces:
Serializable, TreeModel

public class LegendModel extends DefaultTreeModel
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 Details

    • root

      protected LegendEntry root
      Deprecated.
    • iconWidth

      protected int iconWidth
      Deprecated.
    • DEFAULT_ROOT

      protected static final Object DEFAULT_ROOT
      Deprecated.
    • rootObject

      protected Object rootObject
      Deprecated.
    • nodeMap

      protected Map<org.geotools.map.Layer,LegendLayerEntry> 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

      public LegendModel(String title)
      Deprecated.
  • Method Details

    • initMapContext

      public void initMapContext(org.geotools.map.MapContent context)
      Deprecated.
    • createLayerEntry

      public LegendEntry createLayerEntry(org.geotools.map.Layer layer)
      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.