Class SoundingSelector

All Implemented Interfaces:
ActionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, IdvConstants

public class SoundingSelector extends IdvChooser
This is the class that can be used for selecting soundings from a upperair netCDF data file. The variables that are to be used are configurable.
Version:
$Id: SoundingSelector.java,v 1.59 2007/07/05 18:46:15 jeffmc Exp $
Author:
Don Murray Unidata/UCAR
See Also:
  • Constructor Details

    • SoundingSelector

      public SoundingSelector(IdvChooser idvChooser, IdvChooserManager mgr, Element chooserNode)
      Create a new SoundingSelector associated with the resources
      Parameters:
      idvChooser - the associated IDV chooser
      mgr - the associated IDV chooser manager
      chooserNode - the description of the chooser in XML
    • SoundingSelector

      public SoundingSelector(PreferenceList servers)
      Construct an object for selecting sounding files starting at the current directory and from a default ADDE server
      Parameters:
      servers - list of servers
    • SoundingSelector

      public SoundingSelector(PreferenceList servers, boolean forServer, boolean multipleSelect)
      Construct an object for selecting sounding files starting at the current directory and from a default ADDE server, set the multipleSelect flag to the given value
      Parameters:
      servers - list of servers
      forServer - true for server vs. file
      multipleSelect - true to select multiple stations
    • SoundingSelector

      public SoundingSelector(IdvChooser idvChooser, PreferenceList servers, boolean forServer, boolean multipleSelect)
      Construct an object for selecting sounding files starting at the current directory and from a default ADDE server, set the multipleSelect flag to the given value
      Parameters:
      idvChooser - the IDV chooser
      servers - list of servers
      forServer - true for server vs. file
      multipleSelect - true to select multiple stations
    • SoundingSelector

      public SoundingSelector(PreferenceList servers, String directoryName, String serverName)
      Construct an object for selecting sounding files starting at the current directory and from a default ADDE server, set the multipleSelect flag to the given value
      Parameters:
      servers - list of servers
      directoryName - directory for files
      serverName - default server
    • SoundingSelector

      public SoundingSelector(PreferenceList servers, String directoryName, String serverName, boolean forServer, boolean multipleSelect)
      Construct an object for selecting sounding files starting at the specified directory.
      Parameters:
      servers - list of servers
      directoryName - starting directory for files
      serverName - default server
      forServer - true for server vs. file
      multipleSelect - true to select multiple stations
    • SoundingSelector

      public SoundingSelector(IdvChooser idvChooser, PreferenceList servers, String directoryName, String serverName, boolean forServer, boolean multipleSelect)
      Construct an object for selecting sounding files starting at the specified directory.
      Parameters:
      idvChooser - the IDV chooser
      servers - list of servers
      directoryName - starting directory for files
      serverName - default server
      forServer - true for server vs. file
      multipleSelect - true to select multiple stations
  • Method Details

    • updateStatus

      public void updateStatus()
      Update the status
      Overrides:
      updateStatus in class IdvChooser
    • doMakeContents

      protected JComponent doMakeContents()
      Make the UI contents
      Overrides:
      doMakeContents in class ChooserPanel
      Returns:
      the UI contents
    • getAddeChooser

      public AddeChooser getAddeChooser()
      get the addechooser we use
      Returns:
      adde chooser
    • doUpdate

      public void doUpdate()
      Update the selector.
      Overrides:
      doUpdate in class ChooserPanel
    • doCancel

      public void doCancel()
      Gets called when the user presses Cancel in multipleSelect mode This can get overwritten by a derived class to do something.
      Overrides:
      doCancel in class IdvChooser
    • getSoundingAdapter

      public SoundingAdapter getSoundingAdapter()
      Get the SoundingAdapter used by this selector.
      Returns:
      the SoundingAdapter used by this selector.
    • setSoundingAdapter

      protected void setSoundingAdapter(SoundingAdapter newAdapter)
      Set the SoundingAdapter used by this selector
      Parameters:
      newAdapter - new adapter
    • actionPerformed

      public void actionPerformed(ActionEvent e)
      Handle actions.
      Specified by:
      actionPerformed in interface ActionListener
      Overrides:
      actionPerformed in class ChooserPanel
      Parameters:
      e - ActionEvent to handle.
    • main

      public static void main(String[] argv)
      Test routine
      Parameters:
      argv - not used
    • getSelectedTime

      public DateTime getSelectedTime()
      Get the selected time.
      Returns:
      the time selected in the list
    • getSelectedTimes

      public List getSelectedTimes()
      Get the selected time.
      Returns:
      the time selected in the list
    • getSelectedSoundings

      public List getSelectedSoundings()
      Get the selected soundings
      Returns:
      List of selected soundings