ucar.unidata.idv.control
Class ContourWidget

java.lang.Object
  extended by ucar.unidata.idv.control.ControlWidget
      extended by ucar.unidata.idv.control.ContourWidget
All Implemented Interfaces:
ActionListener, EventListener

public class ContourWidget
extends ControlWidget

A widget for the control window for viewing contour properties and launching the editor.

Version:
$Revision: 1.27 $
Author:
Jeff McWhirter

Constructor Summary
ContourWidget(DisplayControlImpl control, ContourInfo contourInfo)
          Construct a ContourWidget
 
Method Summary
 void actionPerformed(ActionEvent ae)
          Method public due to ActionListener implementation
 void fillList(List l, int columns)
          Fill a list of components
 JButton getButton()
          Get the button for this widget.
 JLabel getLabel()
          Get the label for this widget.
 void setContourInfo(ContourInfo ci)
          Set the contour information for this widget and update the labels.
 void showContourPropertiesDialog()
          Popup the contour properties dialog
 
Methods inherited from class ucar.unidata.idv.control.ControlWidget
doRemove, fillList, fillList, getDisplayControl, getDisplayConventions, logException, userMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContourWidget

public ContourWidget(DisplayControlImpl control,
                     ContourInfo contourInfo)
Construct a ContourWidget

Parameters:
control - the associate control
contourInfo - the contour information
Method Detail

actionPerformed

public void actionPerformed(ActionEvent ae)
Method public due to ActionListener implementation

Specified by:
actionPerformed in interface ActionListener
Overrides:
actionPerformed in class ControlWidget
Parameters:
ae - action event

showContourPropertiesDialog

public void showContourPropertiesDialog()
Popup the contour properties dialog


setContourInfo

public void setContourInfo(ContourInfo ci)
Set the contour information for this widget and update the labels.

Parameters:
ci - new contour information

getButton

public JButton getButton()
Get the button for this widget.

Returns:
the button

getLabel

public JLabel getLabel()
Get the label for this widget.

Returns:
the label.

fillList

public void fillList(List l,
                     int columns)
Fill a list of components

Overrides:
fillList in class ControlWidget
Parameters:
l - list of widgets
columns - number of columns for layout