ucar.unidata.idv.ui
Class SideLegend.CategoryPanel

java.lang.Object
  extended by ucar.unidata.idv.ui.LegendPanel
      extended by ucar.unidata.idv.ui.SideLegend.CategoryPanel
Enclosing class:
SideLegend

public static class SideLegend.CategoryPanel
extends LegendPanel

Class CategoryPanel is used to hold the set of display control legends for a particular display category.

Author:
IDV development team

Field Summary
 
Fields inherited from class ucar.unidata.idv.ui.LegendPanel
contents, extraRight
 
Constructor Summary
SideLegend.CategoryPanel(SideLegend legend, String theCategory)
          Create me with the given legend and category
 
Method Summary
 void add(DisplayControl control, JComponent comp)
          Add the given display control and its GUI component to this panel
 void clear()
          clear out contents
 boolean containsDisplayControl(DisplayControl control)
          Does this category panel contain the given control
 void controlVisibilityChanged(boolean toWhat)
          Handle when the visibility of a display control has been changed
 void doDrop(Object object)
           
 boolean dropOk(Object object)
           
 boolean makeDropPanel()
           
 void reInitialize()
          Clear out the current state
 
Methods inherited from class ucar.unidata.idv.ui.LegendPanel
add, add, doMakeContents, getContents, getInnerVisible, setComponents, setInnerVisible, toggleInnerVisible, walkMe
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SideLegend.CategoryPanel

public SideLegend.CategoryPanel(SideLegend legend,
                                String theCategory)
Create me with the given legend and category

Parameters:
legend - The legend we are part of
theCategory - Our display category
Method Detail

makeDropPanel

public boolean makeDropPanel()
Overrides:
makeDropPanel in class LegendPanel

dropOk

public boolean dropOk(Object object)
Overrides:
dropOk in class LegendPanel

doDrop

public void doDrop(Object object)
Overrides:
doDrop in class LegendPanel

controlVisibilityChanged

public void controlVisibilityChanged(boolean toWhat)
Handle when the visibility of a display control has been changed

Parameters:
toWhat - What the visibility was changed to

add

public void add(DisplayControl control,
                JComponent comp)
Add the given display control and its GUI component to this panel

Parameters:
control - The display control to add
comp - Its GUI component

containsDisplayControl

public boolean containsDisplayControl(DisplayControl control)
Does this category panel contain the given control

Parameters:
control - The control
Returns:
Contains the control

reInitialize

public void reInitialize()
Clear out the current state

Overrides:
reInitialize in class LegendPanel

clear

public void clear()
clear out contents

Overrides:
clear in class LegendPanel