|
||||||||||
| 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
ucar.unidata.idv.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.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| 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_TDSRADARSERVER, PROP_CHOOSER_MAPS, PROP_CHOOSER_PROJECTION_BOUNDS, stationMap |
| Fields inherited from class ucar.unidata.ui.ChooserPanel |
|---|
cancelButton, CMD_LOAD, contents, GRID_INSETS, GRID_SPACING, 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 String |
getLoadToolTip()
Get the tooltip for the load button |
protected void |
getTopComponents(List comps)
Get the components for the top of the chooser |
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 |
protected boolean |
shouldShowRecentComponent()
Flag for whether the recent files component should be shown |
| Methods inherited from class ucar.unidata.idv.chooser.FileChooser |
|---|
checkRecentPatternWidgetsEnable, doLoadInThread, doMakeContents, doUpdate, getAccessory, getAllowDirectorySelectionCbx, getButtonLabels, getFileChooser, getFileCount, getFileNames, getFilePattern, getRecentFilesComponent, getRecentFilesComponent, getUpdateToolTip, selectFiles |
| Methods inherited from class ucar.unidata.ui.ChooserPanel |
|---|
actionPerformed, addPropertyChangeListener, clearWaitCursor, doHelp, doLoad, firePropertyChange, getDefaultButtons, getHaveData, getLoadCommandName, getSimpleMode, getStatusComponent, getStatusLabel, registerStatusComp, revalidate, setHaveData, setHelpPath, setStatus, setStatus |
| 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 |
| Constructor Detail |
|---|
public Level2RadarChooser(IdvChooserManager mgr,
Element root)
mgr - The managerroot - The xml| Method Detail |
|---|
protected String getLoadToolTip()
getLoadToolTip in class FileChooserprotected void getTopComponents(List comps)
getTopComponents in class FileChoosercomps - the componetns to add toprotected boolean shouldShowRecentComponent()
shouldShowRecentComponent in class FileChooserprotected JFileChooser doMakeFileChooser(String path)
doMakeFileChooser in class FileChooserpath - the initial path
protected boolean selectFilesInner(File[] files,
File directory)
selectFilesInner in class FileChooserfiles - Array of filesdirectory - The last directory chosen
protected void guessAtStation(File file)
file - The selected file
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||