Class MapLegend

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class MapLegend extends JPanel
Deprecated.
2D piccolo based code is being removed
This is a widget that represents the legend of some gis space. The legend can be broken up into a series of Categories and subCategories as appropriate.
Version:
$Revision: 1.14 $
Author:
$Author: collier $
See Also:
  • Constructor Details

    • MapLegend

      public MapLegend(org.geotools.map.MapContent context, String title)
      Deprecated.
      Create a MapLegend widget based on the supplied MapContext
      Parameters:
      context - the map context
    • MapLegend

      public MapLegend()
      Deprecated.
  • Method Details

    • addLegendAction

      public void addLegendAction(String name, LegendAction<LegendEntry> action)
      Deprecated.
      Add an action that will be offered when the user right clicks on a layer entry in the legend.
      Parameters:
      name - The name of the action to appear in the context specific menu
      action - The action to be executed on the layer.
    • getSelectedLayer

      public org.geotools.map.Layer getSelectedLayer()
      Deprecated.