Class TDSRadarChooser

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
ucar.unidata.ui.ChooserPanel
ucar.unidata.idv.chooser.IdvChooser
ucar.unidata.idv.chooser.TimesChooser
edu.wisc.ssec.mcidasv.chooser.TDSRadarChooser
All Implemented Interfaces:
Constants, ActionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, ucar.unidata.idv.IdvConstants

public class TDSRadarChooser extends ucar.unidata.idv.chooser.TimesChooser implements Constants
This class is responsible for the "Remote Level II Radar" chooser in McIDAS-V.
See Also:
  • Field Details

  • Constructor Details

    • TDSRadarChooser

      public TDSRadarChooser(ucar.unidata.idv.chooser.IdvChooserManager mgr, Element root)
      Create the RadarChooser.
      Parameters:
      mgr - IdvChooserManager
      root - XML root that defines this chooser.
  • Method Details

    • doUpdate

      public void doUpdate()
      Handle the update event. Just pass it through to the imageChooser
      Overrides:
      doUpdate in class ucar.unidata.ui.ChooserPanel
    • updateStatus

      protected void updateStatus()
      Update the status of the gui
      Overrides:
      updateStatus in class ucar.unidata.idv.chooser.TimesChooser
    • newSelectedStations

      protected void newSelectedStations(List stations)
      Handle when there are newly selected stations
      Overrides:
      newSelectedStations in class ucar.unidata.idv.chooser.IdvChooser
      Parameters:
      stations - list of newly selected stations
    • productChanged

      protected void productChanged()
      _more_
    • resetProductBox

      private void resetProductBox()
      Reset the descriptor stuff
    • shouldDoUpdateOnFirstDisplay

      protected boolean shouldDoUpdateOnFirstDisplay()
      Should we update on first display
      Overrides:
      shouldDoUpdateOnFirstDisplay in class ucar.unidata.idv.chooser.IdvChooser
      Returns:
      true
    • setServer

      private void setServer(String s)
      Set the server
      Parameters:
      s - the server URL
    • setCollection

      private void setCollection(String s)
      Set the active collection
      Parameters:
      s - collection URL
    • setLevel3Collection

      private void setLevel3Collection(String s)
      _more_
      Parameters:
      s - _more_
    • addServerComp

      Add a component that needs to have a valid server
      Parameters:
      comp - the component
      Returns:
      the component
    • addLevel3ServerComp

      Add a component that needs to have a valid server
      Parameters:
      comp - the component
      Returns:
      the component
    • getRadarCollections

      private List getRadarCollections(String radarServerURL)
      Get the radar collections for the given server URL
      Parameters:
      radarServerURL - server URL
      Returns:
      a map of the collection names to URL
    • readElements

      public org.jdom2.Element readElements(org.jdom2.Element elem, String eleName)
      Read the elements
      Parameters:
      elem - element
      eleName - element name
      Returns:
      an element
    • initializeCollection

      public void initializeCollection(String url)
      Make the collection. If there is an error, pop up a user message.
      Parameters:
      url - URL for the collection
    • canShowErrorWindows

      private static boolean canShowErrorWindows()
      Utility method to check to see if McIDAS-V is ready to show error dialogs.
      Returns:
      true if McIDAS-V has finished starting and not in background mode. false otherwise.
    • initializeLevel3Collection

      _more_
      Parameters:
      url - _more_
    • stationOrProductChanged

      public void stationOrProductChanged()
      Handle when the user has selected a new station
    • doLoadInThread

      public void doLoadInThread()
      Load the data
      Overrides:
      doLoadInThread in class ucar.unidata.ui.ChooserPanel
    • getNumTimesToSelect

      protected int getNumTimesToSelect()
      Description copied from class: ucar.unidata.idv.chooser.TimesChooser
      Get the number of times to select
      Overrides:
      getNumTimesToSelect in class ucar.unidata.idv.chooser.TimesChooser
      Returns:
      the number
    • getDefaultRelativeTimeIndex

      protected int getDefaultRelativeTimeIndex()
      Get the default selected index for the relative times list.
      Overrides:
      getDefaultRelativeTimeIndex in class ucar.unidata.idv.chooser.TimesChooser
      Returns:
      default index
    • checkTimesLists

      protected void checkTimesLists()
      Check the times lists
      Overrides:
      checkTimesLists in class ucar.unidata.idv.chooser.TimesChooser
    • makeTimesPanel

      protected JPanel makeTimesPanel()
      Add the interval selector to the component.
      Overrides:
      makeTimesPanel in class ucar.unidata.idv.chooser.TimesChooser
      Returns:
      superclass component with extra stuff
    • makeTimesPanel

      protected JPanel makeTimesPanel(JComponent relativeCard, JComponent absoluteCard)
      Set the relative and absolute extra components
    • getExtraTimeComponent

      Get the time popup widget
      Overrides:
      getExtraTimeComponent in class ucar.unidata.idv.chooser.TimesChooser
      Returns:
      a widget for selecting the day
    • doMakeInnerPanel

      protected JPanel doMakeInnerPanel()
      Make the contents
      Returns:
      the contents
    • setStatus

      public void setStatus(String statusString, String foo)
      Overrides:
      setStatus in class ucar.unidata.ui.ChooserPanel
    • setInnerPanel

      protected void setInnerPanel(JPanel newInnerPanel)
    • getRelativeTimesChooser

      Create the widget responsible for handling relative time selection.
      Overrides:
      getRelativeTimesChooser in class ucar.unidata.idv.chooser.TimesChooser
      Returns:
      GUI widget.
    • validateRelativeTimeInput

      private void validateRelativeTimeInput(String text)
      Validate the contents of the relative times text field.

      This method overwrites relativeTimes if text is an integer greater than zero.

      Parameters:
      text - Contents of the text field.
    • handleRelativeTimeChange

      Handle DocumentListener events for the JTextField created by getRelativeTimesChooser().
      Parameters:
      event - Event to handle. Cannot be null.
    • getRelativeTimeIndices

      public int[] getRelativeTimeIndices()
      Get the relative time indices
      Overrides:
      getRelativeTimeIndices in class ucar.unidata.idv.chooser.TimesChooser
      Returns:
      an array of indices
    • doMakeContents

      Make the UI for this selector. Thank you NetBeans for helping with the layout!
      Overrides:
      doMakeContents in class ucar.unidata.ui.ChooserPanel
      Returns:
      The GUI.