|
||||||||||
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.TimesChooser
ucar.unidata.idv.chooser.adde.AddeChooser
edu.wisc.ssec.mcidasv.chooser.adde.AddeChooser
edu.wisc.ssec.mcidasv.chooser.adde.AddePointDataChooser
edu.wisc.ssec.mcidasv.chooser.adde.AddeRaobChooser
public class AddeRaobChooser
A chooser class for selecting Raob data.
Mostly just a wrapper around a
SoundingSelector
that does most of the work
Nested Class Summary |
---|
Nested classes/interfaces inherited from class edu.wisc.ssec.mcidasv.chooser.adde.AddeChooser |
---|
AddeChooser.GroupComparator, AddeChooser.ServerComparator |
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 int |
connectionStep
This is a virtual timestamp that tracks if the threaded adde connection should be aborted or not |
static String |
DATA_TYPE
Property for the data type. |
private JComboBox |
descriptorComboBox2
|
protected String[] |
descriptorNames2
|
private Hashtable |
descriptorTable2
Significant level objects corresponding to mandatory level objects |
private String |
LABEL_SELECT2
|
private JCheckBox |
mainHoursCbx
We need to be able to enable/disable this based on sounding type |
private JList |
obsList
list of observations |
private Object |
readSatelliteTask
|
private Object |
readStationTask
handle on the station update task |
private String |
satellitePixel
|
private JTextField |
satellitePixelTextField
|
private boolean |
satelliteSounding
This flag keeps track of observed/satellite soundings |
private String |
satelliteTime
|
private JButton |
satelliteTimeButton
|
private JComboBox |
satelliteTimeComboBox
|
private JLabel |
satelliteTimeLabel
Selector for times when pointing to satellite data (required field) |
private JPanel |
satelliteTimePanel
|
private List |
satelliteTimes
|
private Vector |
selectedObs
selected observations |
private JCheckBox |
showAll
|
private boolean |
showMainHoursOnly
flag for 0 and 12z only |
(package private) AddeSoundingAdapter |
soundingAdapter
sounding adapter used by this selector |
private JList |
timesList
list of times |
Fields inherited from class edu.wisc.ssec.mcidasv.chooser.adde.AddePointDataChooser |
---|
archiveDay, archiveDayBtn, archiveDayLabel, DATASET_NAME_KEY, descriptorsAllowPrefix, firstTime, relTimeIncBox, relTimeIncLabel, retry, tryWithoutSampling |
Fields inherited from class edu.wisc.ssec.mcidasv.chooser.adde.AddeChooser |
---|
allServersFlag, cb, CMD_MANAGER, commentList, compsThatNeedDescriptor, connectButton, DESCRIPTOR_TABLE, descriptorComboBox, descriptorLabel, descriptorList, descriptorNames, descriptorTable, ignoreDescriptorChange, LABEL_SELECT, manageButton, nameSeparator, parameterButton, publicButton, restoreElement, separator, serverManager |
Fields inherited from class ucar.unidata.idv.chooser.adde.AddeChooser |
---|
CMD_CONNECT, DATA_NAME_KEY, DEFAULT_COMPRESS, DEFAULT_DEBUG, DEFAULT_PORT, DEFAULT_PROJ, DEFAULT_USER, DEFAULT_VERSION, FILE_PUBLICSRV, groupSelector, ignoreStateChangedEvents, LABEL_DATAINTERVAL, LABEL_DATASET, LABEL_DATATYPE, LABEL_SERVER, LABEL_STATIONS, LABEL_TIMES, MSG_TIMES, NEW_SELECTION, passwords, PROP_ADDEPORT, PROP_COMPRESS, PROP_CYD, PROP_DATANAME, PROP_DAY, PROP_DEBUG, PROP_DESCR, PROP_FILE, PROP_GROUP, PROP_HMS, PROP_NUM, PROP_PARAM, PROP_PORT, PROP_POS, PROP_PROJ, PROP_SELECT, PROP_TIME, PROP_USER, PROP_VERSION, REQ_DATASETINFO, REQ_IMAGEDATA, REQ_IMAGEDIR, REQ_POINTDATA, REQ_TEXT, serverTimeStamp, STATE_CONNECTED, STATE_CONNECTING, STATE_UNCONNECTED, STATUS_ERROR, STATUS_NEEDSLOGIN, STATUS_OK, WIDGET_MUTEX |
Fields inherited from class ucar.unidata.idv.chooser.TimesChooser |
---|
drivercbx, selectedDriver, timesComponents, timesContainer |
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 | |
---|---|
AddeRaobChooser(IdvChooserManager mgr,
Element root)
Construct a RaobChooser using the manager
and the root XML that defines this object. |
Method Summary | |
---|---|
private void |
checkSetObsSat()
See if we are pointing to observed or satellite soundings |
protected void |
clearOnChange(JComboBox box)
Add a listener to the given combobox that will set the state to unconnected |
protected void |
clearStations()
Override clearStations to clear times as well |
protected void |
clearTimes()
Remove all times from the user lists |
protected void |
connectToServer()
Method to call if the server changed. |
protected StationLocationMap |
createStationMap()
Overwrite base class method to create the station map with the appropriate properties. |
private JList |
createTimesList()
Create the list of times. |
protected void |
descriptorChanged()
Respond to a change in the descriptor list. |
protected void |
descriptorChanged(boolean checkObsSat)
Respond to a change in the descriptor list. |
void |
doLoadInThread()
Load the data source in a thread |
JComponent |
doMakeContents()
Make the UI for this selector. |
private void |
doUpdateInner(boolean forceNewAdapter)
Really update station map. |
protected void |
enableWidgets()
Enable or disable the GUI widgets based on what has been selected. |
private List |
getCurrentSelectedStations()
This looks in the selectedList of SoundingOb-s for all stations that are selected for the current time. |
String |
getDataName()
Tell the AddeChooser our name |
protected String |
getDefaultDisplayType()
get default display to create |
protected String |
getDescriptor2()
Get the selected descriptor. |
String |
getDescriptorLabel()
Get the descriptor widget label. |
private String |
getMandatoryDataset()
Get the mandatory dataset name. |
List |
getSelectedSoundings()
Get the selected soundings |
DateTime |
getSelectedTime()
Get the selected time. |
List |
getSelectedTimes()
Get the selected time. |
private String |
getSigLevelDataset()
Get the sig level dataset name. |
void |
handleUpdate()
Update the widget with the latest data. |
protected boolean |
haveTimeSelected()
Are there any times selected. |
protected void |
initStationMap(StationLocationMap stationMap)
Initialize the stations |
protected JPanel |
makeTimesPanel()
Add the times selector to the component. |
private void |
newTimes(List times)
Set the new times |
private void |
obsListClicked(MouseEvent event)
Handle the selection of an ob |
protected void |
readDescriptors()
Generate a list of image descriptors for the descriptor list. |
void |
readTimes()
Do nothing for read times... |
protected void |
resetDescriptorBox()
Reset the descriptor stuff |
private void |
sampleTimes()
Wrapper for sampleTimesInner Starts in a new thread and handles UI updating |
private void |
sampleTimesInner()
Different way of reading times... for satellite soundings, do the following: PTLIST GROUP/DESCRIPTOR.Z SEL='ROW X; COL Y' PAR=TIME where Z starts at 0 (expect an error), then goes to 1 and increases monotonically in outer loop until error and X starts at 1 and increases monotonically in middle loop until error and Y starts at 1 and increases by 25000 or so in inner loop until error This samples times across the dataset |
private void |
setAvailableStations(boolean forceNewAdapter)
Update the station map with available stations. |
protected void |
setDescriptors2(String[] names2)
Initialize the descriptor list from a list of names |
protected void |
setSoundingAdapter(AddeSoundingAdapter newAdapter)
Set the SoundingAdapter used by this selector |
private void |
setStations()
Get the current list of stations that are selected |
private void |
setTimesListData(List selected)
Set the data in the times list |
private void |
stationSelected(Station station)
Handle a station selection |
private void |
stationUnselected(Station station)
Unselect a station |
boolean |
timesOk()
Do we have times selected. |
private void |
unselectAll()
Unselect all station |
protected void |
updateStatus()
Update labels, etc. |
Methods inherited from class edu.wisc.ssec.mcidasv.chooser.adde.AddePointDataChooser |
---|
appendRequestSelectClause, canReadTimes, doCancel, doMakeContents, getArchiveDay, getDataType, getDayTimeSelectString, getExtraTimeComponentAbsolute, getExtraTimeComponentRelative, getGroupType, getRelativeTimeIncrement, getRelBoxString, getRelBoxValue, getRequestUrl, getSelectedStationModel, getTimesRequest, handleConnectionError, isProfiler, isSynoptic, isUpperAir, readFromServer, readTimesInner, setRelativeTimeIncrement |
Methods inherited from class ucar.unidata.idv.chooser.adde.AddeChooser |
---|
addServerComp, addTopComponents, addTopComponents, appendKeyValue, canDoCancel, doConnect, doUpdate, getConnectButton, getDataSetName, getGoodToGo, getGroupUrl, getLoadToolTip, getMiscKeyProps, getMiscKeywords, getPort, getState, getUrl, handleConnectFromThread, handleUpdateFromThread, readGroups, readTextLines, removeGroup, removeServer, setGroups, setState |
Methods inherited from class ucar.unidata.ui.ChooserPanel |
---|
addPropertyChangeListener, canDoUpdate, clearWaitCursor, doHelp, firePropertyChange, getButtonLabels, getDefaultButtons, getHaveData, getLoadCommandName, getMessageTemplate, getSimpleMode, getStatusComponent, getUpdateToolTip, 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 |
---|
public static String DATA_TYPE
private Hashtable descriptorTable2
private JComboBox descriptorComboBox2
protected String[] descriptorNames2
private String LABEL_SELECT2
private JCheckBox showAll
private Object readSatelliteTask
private boolean satelliteSounding
private JLabel satelliteTimeLabel
private JPanel satelliteTimePanel
private JButton satelliteTimeButton
private JComboBox satelliteTimeComboBox
private JTextField satellitePixelTextField
private String satelliteTime
private String satellitePixel
private List satelliteTimes
private JCheckBox mainHoursCbx
private int connectionStep
private Object readStationTask
private JList timesList
private JList obsList
private Vector selectedObs
AddeSoundingAdapter soundingAdapter
private boolean showMainHoursOnly
Constructor Detail |
---|
public AddeRaobChooser(IdvChooserManager mgr, Element root)
RaobChooser
using the manager
and the root XML that defines this object.
mgr
- IdvChooserManager
that controls this chooser.root
- root element of the XML that defines this objectMethod Detail |
---|
public String getDataName()
getDataName
in class AddePointDataChooser
public String getDescriptorLabel()
getDescriptorLabel
in class AddePointDataChooser
protected String getDefaultDisplayType()
getDefaultDisplayType
in class IdvChooser
private String getMandatoryDataset()
private String getSigLevelDataset()
protected void clearOnChange(JComboBox box)
clearOnChange
in class AddeChooser
box
- The box to listen to.protected void resetDescriptorBox()
resetDescriptorBox
in class AddeChooser
protected void setDescriptors2(String[] names2)
names
- list of namesprotected String getDescriptor2()
protected void connectToServer()
connectToServer
in class AddeChooser
public boolean timesOk()
timesOk
in class AddePointDataChooser
protected boolean haveTimeSelected()
haveTimeSelected
in class AddePointDataChooser
public void readTimes()
readTimes
in class AddePointDataChooser
private void sampleTimes()
private void sampleTimesInner()
protected void readDescriptors()
readDescriptors
in class AddePointDataChooser
private void checkSetObsSat()
protected void clearStations()
clearStations
in class IdvChooser
protected void clearTimes()
protected void updateStatus()
updateStatus
in class AddePointDataChooser
protected StationLocationMap createStationMap()
createStationMap
in class IdvChooser
protected void initStationMap(StationLocationMap stationMap)
initStationMap
in class IdvChooser
stationMap
- The station mapprivate void stationSelected(Station station)
station
- selected stationprivate void stationUnselected(Station station)
station
- station to unselectprivate void unselectAll()
private List getCurrentSelectedStations()
private void setStations()
protected void setSoundingAdapter(AddeSoundingAdapter newAdapter)
newAdapter
- new adapterprivate void setTimesListData(List selected)
selected
- a list of times that should be selectedpublic DateTime getSelectedTime()
public List getSelectedTimes()
private JList createTimesList()
private void newTimes(List times)
times
- new times to usepublic List getSelectedSoundings()
private void obsListClicked(MouseEvent event)
event
- MouseEvent for selectionpublic void handleUpdate() throws Exception
handleUpdate
in class AddePointDataChooser
Exception
- On badnessprotected void enableWidgets()
enableWidgets
in class AddePointDataChooser
protected void descriptorChanged()
descriptorChanged
in class AddeChooser
protected void descriptorChanged(boolean checkObsSat)
private void setAvailableStations(boolean forceNewAdapter)
private void doUpdateInner(boolean forceNewAdapter)
forceNewAdapter
- If true then create a new adapter.
Else, tell the existing one to update.public void doLoadInThread()
doLoadInThread
in class AddePointDataChooser
protected JPanel makeTimesPanel()
makeTimesPanel
in class AddePointDataChooser
public JComponent doMakeContents()
doMakeContents
in class AddePointDataChooser
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |