ucar.unidata.idv.ui
Class BottomLegend

java.lang.Object
  extended by ucar.unidata.idv.ui.IdvLegend
      extended by ucar.unidata.idv.ui.BottomLegend
All Implemented Interfaces:
Removable

public class BottomLegend
extends IdvLegend

This class provides the bottom legend of display controls shown in a ViewManager.

Author:
IDV development team

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
BottomLegend(ViewManager viewManager)
          Create me with the given ViewManager
 
Method Summary
protected  JComponent doMakeContents()
          Make the GUI contents.
protected  void fillLegendSafely()
          Override the case class method to refill the legend.
 void setColors(Color foreground, Color background)
          Set the colors of the legend.
 
Methods inherited from class ucar.unidata.idv.ui.IdvLegend
doClose, doRemove, fillLegend, floatLegend, getContainer, getContents, getFloatButton, getTitle, makePropertiesButton, setContentsToUse, setTheContainer, setViewManager, showLegend, unFloatLegend
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BottomLegend

public BottomLegend(ViewManager viewManager)
Create me with the given ViewManager

Parameters:
viewManager - The view manager I am part of
Method Detail

doMakeContents

protected JComponent doMakeContents()
Make the GUI contents.

Specified by:
doMakeContents in class IdvLegend
Returns:
The GUI contents

setColors

public void setColors(Color foreground,
                      Color background)
Set the colors of the legend.

Overrides:
setColors in class IdvLegend
Parameters:
foreground - The foreground color of the ViewManager
background - The background color of the ViewManager

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