Package ucar.unidata.idv.ui
Class SideLegend
java.lang.Object
ucar.unidata.idv.ui.IdvLegend
ucar.unidata.idv.ui.SideLegend
- All Implemented Interfaces:
Removable
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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Class CategoryPanel is used to hold the set of display control legends for a particular display category. -
Field Summary
Fields inherited from class ucar.unidata.idv.ui.IdvLegend
ICON_DOCKED, ICON_FLOAT, ICON_PROPERTIES, ICON_REMOVE, STATE_DOCKED, STATE_FLOAT, STATE_HIDDEN, viewManager
-
Constructor Summary
ConstructorsConstructorDescriptionParameterless constructor for xml encoding.SideLegend
(ViewManager viewManager) Create me with the given ViewManager -
Method Summary
Modifier and TypeMethodDescriptionprotected JComponent
Override the base class method to create the GUI contents.protected void
Override the case class method to refill the legend.Get the CategoryToPanel property._more_void
initWith
(SideLegend that) Apply the category visibility state from the given that legend to this legendvoid
setCategoryToPanelOpen
(Hashtable value) Set the CategoryToPanel property.Methods inherited from class ucar.unidata.idv.ui.IdvLegend
doClose, doRemove, fillLegend, floatLegend, getContainer, getContents, getFloatButton, getTitle, makePropertiesButton, setColors, setContentsToUse, setTheContainer, setViewManager, showLegend, unFloatLegend
-
Constructor Details
-
SideLegend
public SideLegend()Parameterless constructor for xml encoding. -
SideLegend
Create me with the given ViewManager- Parameters:
viewManager
- The view manager I am part of
-
-
Method Details
-
doMakeContents
Override the base class method to create the GUI contents.- Specified by:
doMakeContents
in classIdvLegend
- Returns:
- The GUI contents
-
getDisplayCategories
_more_- Returns:
- _more_
-
initWith
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 classIdvLegend
-
setCategoryToPanelOpen
Set the CategoryToPanel property.- Parameters:
value
- The new value for CategoryToPanel
-
getCategoryToPanelOpen
Get the CategoryToPanel property.- Returns:
- The CategoryToPanel
-