Class AddeProfilerDataChooser

All Implemented Interfaces:
ActionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, IdvConstants
Direct Known Subclasses:
ProfilerChooser

public class AddeProfilerDataChooser extends AddeChooser
Selection widget for specifing data sources of NOAA National Profiler Network data. For selecting Profiler data source; user selects ADDE server, profiler station(s), and choice of data interval such as hourly or 6 minute. Metadata about the station (lat, lon. elevation) and about the request is made available by "get" methods.
Version:
$Revision: 1.6 $
Author:
Unidata IDV Development Team
See Also:
  • Constructor Details

    • AddeProfilerDataChooser

      public AddeProfilerDataChooser(IdvChooserManager mgr, Element root)
      ctor
      Parameters:
      mgr - The chooser manager
      root - The chooser.xml node
  • Method Details

    • getDataName

      public String getDataName()
      Tell the AddeChooser our name
      Overrides:
      getDataName in class AddeChooser
      Returns:
      The name
    • readTimes

      public void readTimes()
      Set the list of available times; use adde request to a station to find times of data available now.
      Overrides:
      readTimes in class AddeChooser
    • getNumTimesToSelect

      protected int getNumTimesToSelect()
      Get the number of times to select
      Overrides:
      getNumTimesToSelect in class TimesChooser
      Returns:
      5
    • handleUpdate

      public void handleUpdate() throws Exception
      Refresh this chooser. Called when user clicks on "Connect" button.
      Overrides:
      handleUpdate in class AddeChooser
      Throws:
      Exception - On badness
    • createStationMap

      protected StationLocationMap createStationMap()
      Overwrite base class method to create the station map with the appropriate properties.
      Overrides:
      createStationMap in class IdvChooser
      Returns:
      The new station map
    • getDefaultProjectionRect

      protected ucar.unidata.geoloc.ProjectionRect getDefaultProjectionRect()
      Overwrite base class method to return the default rectangle for the station map
      Overrides:
      getDefaultProjectionRect in class IdvChooser
      Returns:
      Default proj rectangle
    • initStationMap

      protected void initStationMap(StationLocationMap stationMap)
      Initialize the station map
      Overrides:
      initStationMap in class IdvChooser
      Parameters:
      stationMap - The station map to initialize
    • getSelectedTimes

      public String getSelectedTimes()
      Get String for time "select" item in ADDE data request.
      Returns:
      String for time "select" item in adde request.
    • getSelectedInterval

      public String getSelectedInterval()
      Get data interval name as "30 minute" by user from this chooser gui.
      Returns:
      String data interval name as "30 minute"
    • getDefaultRelativeTimeIndex

      protected int getDefaultRelativeTimeIndex()
      Get the default selected index for the relative times list.
      Overrides:
      getDefaultRelativeTimeIndex in class AddeChooser
      Returns:
      default index
    • getRelativeTimeIncrement

      public float getRelativeTimeIncrement()
      Get the increment between times for relative time requests
      Overrides:
      getRelativeTimeIncrement in class TimesChooser
      Returns:
      time increment in hours
    • getDataSourceInterval

      public String getDataSourceInterval()
      Get data source interval (1 hour or 6 min are only possibilities) of actual data available.
      Returns:
      String data interval name as "prof6min"
    • appendMiscKeyValues

      protected void appendMiscKeyValues(StringBuffer buff)
      Get any extra key=value pairs that are appended to all requests.
      Overrides:
      appendMiscKeyValues in class AddeChooser
      Parameters:
      buff - The buffer to append onto
    • doLoadInThread

      public void doLoadInThread()
      Get the selection event from the profiler data chooser and process it, creating a ADDE.PROFILER data source
      Overrides:
      doLoadInThread in class ChooserPanel