|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
ucar.unidata.ui.ChooserPanel
ucar.unidata.idv.chooser.IdvChooser
ucar.unidata.idv.chooser.FileChooser
edu.wisc.ssec.mcidasv.chooser.FileChooser
edu.wisc.ssec.mcidasv.chooser.Level2RadarChooser
public class Level2RadarChooser
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
Nested Class Summary | |
---|---|
class |
Level2RadarChooser.Level2RadarFileChooser
This class allows us to add in our own functionality to the file chooser. |
Nested classes/interfaces inherited from class ucar.unidata.idv.chooser.FileChooser |
---|
FileChooser.MyFileChooser |
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
---|---|
private static String |
CDM_DATA_TYPE
the type for the CDM radar |
private static String |
DATA_TYPE
The data source id we pass the files to. |
private List |
nexradStations
List of predefined nexrad stations |
private JComboBox |
stationsCbx
Holds the predefined list of nexrad stations |
private JCheckBox |
typeCbx
checkbox for switching data types |
private static String |
UNKNOWN_STATION
Label used in the widgets to show an unknown station |
Fields inherited from class edu.wisc.ssec.mcidasv.chooser.FileChooser |
---|
ATTR_SELECT_DSID, bottomPanel, buttonPressed, centerPanel, fileChooser, idv, path, topPanel |
Fields inherited from class ucar.unidata.idv.chooser.FileChooser |
---|
allowDirectorySelectionCbx, ATTR_DATASOURCEID, ATTR_DSCOMP, ATTR_FILECOUNT, ATTR_FILEPATTERN, ATTR_FILTERS, ATTR_PATH, ATTR_POLLON, ATTR_SHOWPATTERNFIELD, patternFld, recentFilesCbx |
Fields inherited from class ucar.unidata.idv.chooser.IdvChooser |
---|
ATTR_ID, ATTR_SHOWDETAILS, dirHistoryCbx, ignoreDirHistory, NULL_PROPERTIES, NULL_STRING, PREF_ADDESERVERS, PREF_CATALOGLIST, PREF_DEFAULTDIR, PREF_IMAGEDESCLIST, PREF_POLLINGINFO, PREF_RADARDESCLIST, PREF_TDSPOINTOBSERVER, PREF_TDSRADARSERVER, PROP_CHOOSER_MAPS, PROP_CHOOSER_PROJECTION_BOUNDS, PROP_CHOOSERCLASSNAME, PROP_STATUS_BACKGROUND, PROP_STATUS_FOREGROUND, PROP_STATUS_TEMPLATE, stationMap |
Fields inherited from class ucar.unidata.ui.ChooserPanel |
---|
cancelButton, CMD_LOAD, contents, GRID_INSETS, GRID_SPACING, GRID_SPACING_H, GRID_SPACING_V, haveData, helpPath, loadButton, MAP_COLOR, simpleMode |
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
Level2RadarChooser(IdvChooserManager mgr,
Element root)
Create the chooser with the given chooser manager and xml root (from the xml that defines this chooser). |
Method Summary | |
---|---|
protected JFileChooser |
doMakeFileChooser(String path)
Make the file chooser |
protected JPanel |
getBottomPanel()
Get the bottom panel for the chooser |
protected JComboBox |
getDataSourcesComponent()
Overridden so that McIDAS-V can attempt auto-selecting the default data source type. |
protected String |
getDataSourcesLabel()
Label for getDataSourcesComponent selector |
protected String |
getLoadToolTip()
Get the tooltip for the load button |
private List |
getStations()
Read in the nexrad stations from the idv/resources/nexradstns.xml resource |
protected void |
guessAtStation(File file)
Try to guess at the station of the selected file based on directory name. |
protected boolean |
selectFilesInner(File[] files,
File directory)
Process the set of selected files |
Methods inherited from class edu.wisc.ssec.mcidasv.chooser.FileChooser |
---|
doLoadInThread, doMakeContents, doUpdate, getAccessory, getAllowMultiple, getCenterPanel, getDataSourceId, getTopComponents, getTopPanel, setHaveData, setStatus, updateStatus |
Methods inherited from class ucar.unidata.idv.chooser.FileChooser |
---|
checkRecentPatternWidgetsEnable, getAllowDirectorySelectionCbx, getButtonLabels, getFileChooser, getFileCount, getFileNames, getFilePattern, getRecentFilesComponent, getRecentFilesComponent, getUpdateToolTip, selectFiles, shouldShowRecentComponent |
Methods inherited from class ucar.unidata.ui.ChooserPanel |
---|
actionPerformed, addPropertyChangeListener, canDoUpdate, clearWaitCursor, doHelp, doLoad, firePropertyChange, getDefaultButtons, getHaveData, getLoadCommandName, getMessageTemplate, getSimpleMode, getStatusComponent, padLabel, registerStatusComp, revalidate, setHelpPath, setMessageTemplate, setStatus, showNormalCursor, showWaitCursor |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private JComboBox stationsCbx
private List nexradStations
private static String UNKNOWN_STATION
private static String DATA_TYPE
private static String CDM_DATA_TYPE
private JCheckBox typeCbx
Constructor Detail |
---|
public Level2RadarChooser(IdvChooserManager mgr, Element root)
mgr
- The managerroot
- The xmlMethod Detail |
---|
protected String getDataSourcesLabel()
getDataSourcesLabel
in class FileChooser
protected JComboBox getDataSourcesComponent()
getDataSourcesComponent
in class FileChooser
protected String getLoadToolTip()
getLoadToolTip
in class FileChooser
protected JFileChooser doMakeFileChooser(String path)
doMakeFileChooser
in class FileChooser
path
- the initial path
protected boolean selectFilesInner(File[] files, File directory)
selectFilesInner
in class FileChooser
files
- Array of filesdirectory
- The last directory chosen
private List getStations()
NamedStation
-sprotected void guessAtStation(File file)
file
- The selected fileprotected JPanel getBottomPanel()
getBottomPanel
in class FileChooser
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |