Class Level2RadarChooser

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

public class Level2RadarChooser extends FileChooser
A chooser for Level II NEXRAD data. This loads in files from the file system. Since (right now) the data does not contain the station we rely on the heuristic of looking at the directory path name to see if it contains a station name. The user can also specify the station from the GUI
Version:
$Revision: 1.58 $Date: 2007/07/26 15:11:02 $
Author:
IDV development team
See Also:
  • Constructor Details

    • Level2RadarChooser

      public Level2RadarChooser(IdvChooserManager mgr, Element root)
      Create the chooser with the given chooser manager and xml root (from the xml that defines this chooser).
      Parameters:
      mgr - The manager
      root - The xml
  • Method Details

    • getLoadToolTip

      protected String getLoadToolTip()
      Get the tooltip for the load button
      Overrides:
      getLoadToolTip in class FileChooser
      Returns:
      The tooltip for the load button
    • getTopComponents

      protected void getTopComponents(List comps)
      Get the components for the top of the chooser
      Overrides:
      getTopComponents in class FileChooser
      Parameters:
      comps - the componetns to add to
    • shouldShowRecentComponent

      protected boolean shouldShowRecentComponent()
      Flag for whether the recent files component should be shown
      Overrides:
      shouldShowRecentComponent in class FileChooser
      Returns:
      true
    • doMakeFileChooser

      protected JFileChooser doMakeFileChooser(String path)
      Make the file chooser
      Overrides:
      doMakeFileChooser in class FileChooser
      Parameters:
      path - the initial path
      Returns:
      the JFileChooser
    • selectFilesInner

      protected boolean selectFilesInner(File[] files, File directory)
      Process the set of selected files
      Overrides:
      selectFilesInner in class FileChooser
      Parameters:
      files - Array of files
      directory - The last directory chosen
      Returns:
      true if successful
    • guessAtStation

      protected void guessAtStation(File file)
      Try to guess at the station of the selected file based on directory name.
      Parameters:
      file - The selected file