Class AddeRadarChooser

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

public class AddeRadarChooser extends AddeImageChooser
Widget to select NEXRAD radar images from a remote ADDE server Displays a list of the descriptors (names) of the radar datasets available for a particular ADDE group on the remote server.
Author:
Don Murray
See Also:
  • Field Details

  • Constructor Details

    • AddeRadarChooser

      public AddeRadarChooser(IdvChooserManager mgr, Element root)
      Construct an Adde image selection widget displaying information for the specified dataset located on the specified server.
      Parameters:
      mgr - The chooser manager
      root - The chooser.xml node
  • Method Details

    • getGroupType

      protected String getGroupType()
      get the adde server grup type to use
      Overrides:
      getGroupType in class AddeChooser
      Returns:
      group type
    • showAdvancedInTab

      public boolean showAdvancedInTab()
      Should we show the advanced properties component in a separate panel
      Overrides:
      showAdvancedInTab in class AddeImageChooser
      Returns:
      false
    • getDataName

      public String getDataName()
      Overwrite base class method to return the correct name (used for labeling, etc.)
      Overrides:
      getDataName in class AddeImageChooser
      Returns:
      data name specific to this selector
    • getDataType

      public String getDataType()
      Description copied from class: AddeImageChooser
      Get the data type for this chooser
      Overrides:
      getDataType in class AddeImageChooser
      Returns:
      the data type
    • getDescriptorLabel

      public String getDescriptorLabel()
      Get the descriptor label
      Overrides:
      getDescriptorLabel in class AddeImageChooser
      Returns:
      the label
    • getImageListSize

      protected int getImageListSize()
      Get the size of the image list
      Returns:
      the image list size
    • getComponents

      protected void getComponents(List comps)
      Make the components (label/widget) and add them to the list.
      Overrides:
      getComponents in class AddeImageChooser
      Parameters:
      comps - The list to add to.
    • doMakeContents

      protected JComponent doMakeContents()
      Make the UI for this selector.
      Overrides:
      doMakeContents in class AddeImageChooser
      Returns:
      The gui
    • addTimesComponent

      protected void addTimesComponent(List comps)
      Add the times component
      Overrides:
      addTimesComponent in class AddeImageChooser
      Parameters:
      comps - list of components
    • getDatasetName

      public String getDatasetName()
      Get a description of the currently selected dataset
      Overrides:
      getDatasetName in class AddeImageChooser
      Returns:
      the data set description.
    • connectToServer

      protected void connectToServer()
      Method to call if the server changed.
      Overrides:
      connectToServer in class AddeImageChooser
    • readDescriptors

      protected void readDescriptors()
      Generate a list of image descriptors for the descriptor list.
      Overrides:
      readDescriptors in class AddeImageChooser
    • getDescriptorFromSelection

      protected String getDescriptorFromSelection(String selection)
      Description copied from class: AddeImageChooser
      Get the descriptor relating to the selection.
      Overrides:
      getDescriptorFromSelection in class AddeImageChooser
      Parameters:
      selection - String name from the widget
      Returns:
      the descriptor
    • canReadTimes

      protected boolean canReadTimes()
      Check if we are ready to read times
      Overrides:
      canReadTimes in class AddeImageChooser
      Returns:
      true if times can be read
    • getAdvancedProps

      protected String[] getAdvancedProps()
      Get the advanced property names
      Overrides:
      getAdvancedProps in class AddeImageChooser
      Returns:
      array of advanced properties
    • getAdvancedLabels

      protected String[] getAdvancedLabels()
      Get the labels for the advanced properties
      Overrides:
      getAdvancedLabels in class AddeImageChooser
      Returns:
      array of labels
    • updateStatus

      protected void updateStatus()
      Update labels, etc.
      Overrides:
      updateStatus in class AddeImageChooser
    • newSelectedStations

      protected void newSelectedStations(List stations)
      A new station was selected. Update the gui.
      Overrides:
      newSelectedStations in class IdvChooser
      Parameters:
      stations - List of selected stations
    • descriptorChanged

      protected void descriptorChanged()
      Respond to a change in the descriptor list.
      Overrides:
      descriptorChanged in class AddeImageChooser
    • doCancel

      public void doCancel()
      Do the cancel
      Overrides:
      doCancel in class AddeImageChooser
    • makeRequestString

      protected String makeRequestString(AreaDirectory ad, boolean doTimes, int cnt)
      Create the appropriate request string for the image.
      Overrides:
      makeRequestString in class AddeImageChooser
      Parameters:
      ad - AreaDirectory for the image in question.
      doTimes - true if this is for absolute times, false for relative
      cnt - image count (position in dataset)
      Returns:
      the ADDE request URL
    • getBaseUrlProps

      protected String[] getBaseUrlProps()
      Get the list of properties for the base URL
      Overrides:
      getBaseUrlProps in class AddeImageChooser
      Returns:
      list of properties
    • getDefaultPropValue

      protected String getDefaultPropValue(String prop, AreaDirectory ad, boolean forDisplay)
      Overwrite the base class method to return the default property value for PROP_ID.
      Overrides:
      getDefaultPropValue in class AddeImageChooser
      Parameters:
      prop - The property
      ad - The area directory
      forDisplay - Is this to show the end user in the gui.
      Returns:
      The value of the property
    • getPropertiesDescription

      protected String getPropertiesDescription()
      Get a description of the properties
      Overrides:
      getPropertiesDescription in class AddeImageChooser
      Returns:
      a description
    • getDataSourceProperties

      protected void getDataSourceProperties(Hashtable ht)
      get properties
      Overrides:
      getDataSourceProperties in class AddeImageChooser
      Parameters:
      ht - properties