Class SideLegend

java.lang.Object
ucar.unidata.idv.ui.IdvLegend
ucar.unidata.idv.ui.SideLegend
All Implemented Interfaces:
Removable

public class SideLegend extends IdvLegend
This class provides the side legend for display controls in view managers. It organizes the set of display controls hierarhcically, according to their display category. It provides facilities to show/hide, in the legend, both categories of display controls as well as the GUI details of individual display controls.
Author:
IDV development team
  • Constructor Details

    • SideLegend

      public SideLegend()
      Parameterless constructor for xml encoding.
    • SideLegend

      public SideLegend(ViewManager viewManager)
      Create me with the given ViewManager
      Parameters:
      viewManager - The view manager I am part of
  • Method Details

    • doMakeContents

      protected JComponent doMakeContents()
      Override the base class method to create the GUI contents.
      Specified by:
      doMakeContents in class IdvLegend
      Returns:
      The GUI contents
    • getDisplayCategories

      public List<String> getDisplayCategories()
      _more_
      Returns:
      _more_
    • initWith

      public void initWith(SideLegend that)
      Apply the category visibility state from the given that legend to this legend
      Parameters:
      that - The that legend
    • fillLegendSafely

      protected void fillLegendSafely()
      Override the case class method to refill the legend. This gets called from within a synchronized block when the display controls we are showing have changed in some way.
      Specified by:
      fillLegendSafely in class IdvLegend
    • setCategoryToPanelOpen

      public void setCategoryToPanelOpen(Hashtable value)
      Set the CategoryToPanel property.
      Parameters:
      value - The new value for CategoryToPanel
    • getCategoryToPanelOpen

      public Hashtable getCategoryToPanelOpen()
      Get the CategoryToPanel property.
      Returns:
      The CategoryToPanel