|
||||||||||
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
public class AddePointDataChooser
Selection widget for ADDE point data
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 | |
---|---|
protected String |
archiveDay
archive date |
protected JButton |
archiveDayBtn
|
private SimpleDateFormat |
archiveDayFormatter
archive date formatter |
protected JLabel |
archiveDayLabel
archive day button and label |
static String |
DATA_TYPE
Property for the data type. |
static String |
DATASET_NAME_KEY
Property for the dataset name key. |
protected String |
descriptorsAllowPrefix
allowed descriptor prefix |
protected boolean |
firstTime
|
private boolean |
gotObs
Possibly ask for times a second time if the first sampling doesn't get any |
private static org.slf4j.Logger |
logger
Logging object. |
private Object |
MUTEX
locking mutex |
private Object |
readTimesTask
Are we currently reading times |
private float |
relativeTimeIncrement
the relative time increment |
protected JComboBox |
relTimeIncBox
|
protected JLabel |
relTimeIncLabel
box and label for the relative time |
protected boolean |
retry
|
private StationModelManager |
stationModelManager
station model manager |
protected boolean |
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 | |
---|---|
AddePointDataChooser(IdvChooserManager mgr,
Element root)
Create a chooser for Adde POINT data |
Method Summary | |
---|---|
protected void |
appendRequestSelectClause(StringBuffer buf)
Get the select clause for the adde request specific to this type of data. |
protected boolean |
canReadTimes()
Check if we are ready to read times |
void |
doCancel()
_more_ |
void |
doLoadInThread()
Load in an ADDE point data set based on the PropertyChangeEvent |
JComponent |
doMakeContents()
Make the UI for this selector. |
JComponent |
doMakeContents(boolean doesOverride)
|
protected void |
enableWidgets()
Enable or disable the GUI widgets based on what has been selected. |
void |
getArchiveDay()
Show the archive dialog. |
String |
getDataName()
This allows derived classes to provide their own name for labeling, etc. |
String |
getDataType()
Get the data type for this chooser |
protected String |
getDayTimeSelectString()
Create the date time selection string for the "select" clause of the ADDE URL. |
String |
getDescriptorLabel()
Get the descriptor widget label. |
protected JComponent |
getExtraTimeComponentAbsolute()
Get the time popup widget |
protected JComponent |
getExtraTimeComponentRelative()
Get the extra time widget, but built in a different way. |
protected String |
getGroupType()
get the adde server grup type to use |
private String |
getJulianDay()
Get the current Julian day as a String |
float |
getRelativeTimeIncrement()
Get the increment between times for relative time requests |
String |
getRelBoxString()
Get the string from the relative increment box |
protected float |
getRelBoxValue()
Get the value from the relative increment box |
String |
getRequestUrl()
Get the request URL |
StationModel |
getSelectedStationModel()
Get the selected station model. |
protected String |
getTimesRequest()
Get the request string for times particular to this chooser |
protected void |
handleConnectionError(Exception e)
Show the given error to the user. |
void |
handleUpdate()
Update the widget with the latest data. |
protected boolean |
haveTimeSelected()
Are there any times selected. |
protected boolean |
isProfiler()
Return true if selected descriptor is for profiler. |
protected boolean |
isSynoptic()
Return true if selected descriptor is for SYNOPTIC data. |
protected boolean |
isUpperAir()
Return true if selected descriptor is for upper air. |
protected JPanel |
makeTimesPanel()
Add the interval selector to the component. |
protected void |
readDescriptors()
Generate a list of image descriptors for the descriptor list. |
protected void |
readFromServer()
Do server connection stuff... override this with type-specific methods |
void |
readTimes()
Read the set of image times available for the current server/group/type This method is a wrapper, setting the wait cursor and wrapping the call to readTimesInner() ; in a try/catch block |
protected void |
readTimesInner()
Set the list of dates/times based on the image selection |
void |
setRelativeTimeIncrement(float increment)
Set the increment between times for relative time requests |
boolean |
timesOk()
Do we have times selected. |
protected void |
updateStatus()
Update labels, enable widgets, etc. |
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 |
---|
private static final org.slf4j.Logger logger
public static String DATASET_NAME_KEY
AddeChooser.getDataSetName()
public static String DATA_TYPE
private Object readTimesTask
protected JLabel relTimeIncLabel
protected JComboBox relTimeIncBox
private float relativeTimeIncrement
protected String archiveDay
protected JLabel archiveDayLabel
protected JButton archiveDayBtn
private SimpleDateFormat archiveDayFormatter
private StationModelManager stationModelManager
protected String descriptorsAllowPrefix
protected boolean firstTime
protected boolean retry
private boolean gotObs
protected boolean tryWithoutSampling
private final Object MUTEX
Constructor Detail |
---|
public AddePointDataChooser(IdvChooserManager mgr, Element root)
mgr
- The chooser managerroot
- The chooser.xml nodeMethod Detail |
---|
protected void readFromServer()
readFromServer
in class AddeChooser
protected void readDescriptors()
readDescriptors
in class AddeChooser
public void doLoadInThread()
PropertyChangeEvent.
- Overrides:
doLoadInThread
in class ChooserPanel
public void getArchiveDay()
public StationModel getSelectedStationModel()
protected JPanel makeTimesPanel()
makeTimesPanel
in class TimesChooser
protected JComponent getExtraTimeComponentRelative()
protected JComponent getExtraTimeComponentAbsolute()
protected float getRelBoxValue()
public String getRelBoxString()
public String getRequestUrl()
protected void appendRequestSelectClause(StringBuffer buf)
buf
- The buffer to append toprotected boolean canReadTimes()
protected void enableWidgets()
enableWidgets
in class AddeChooser
public boolean timesOk()
protected boolean isSynoptic()
true
if selected descriptor is for SYNOPTIC data.
true
iff AddeChooser.getDescriptor()
is "SYNOP".protected boolean isUpperAir()
true
if selected descriptor is for upper air.
true
iff AddeChooser.getDescriptor()
is "UPPERMAND".protected boolean isProfiler()
true
if selected descriptor is for profiler.
true
iff AddeChooser.getDescriptor()
is "PROF".public void handleUpdate() throws Exception
handleUpdate
in class AddeChooser
Exception
- On badnessprotected String getTimesRequest()
private String getJulianDay()
public String getDataName()
getDataName
in class AddeChooser
public void doCancel()
doCancel
in class IdvChooser
public void readTimes()
readTimesInner()
; in a try/catch block
readTimes
in class AddeChooser
protected void readTimesInner()
protected void handleConnectionError(Exception e)
handleConnectionError
in class AddeChooser
e
- The exceptionprotected boolean haveTimeSelected()
haveTimeSelected
in class TimesChooser
protected String getDayTimeSelectString()
public String getDataType()
getDataType
in class AddeChooser
public float getRelativeTimeIncrement()
getRelativeTimeIncrement
in class TimesChooser
public void setRelativeTimeIncrement(float increment)
increment
- time increment (hours)protected void updateStatus()
updateStatus
in class AddeChooser
public String getDescriptorLabel()
getDescriptorLabel
in class AddeChooser
protected String getGroupType()
getGroupType
in class AddeChooser
public JComponent doMakeContents()
doMakeContents
in class AddeChooser
public JComponent doMakeContents(boolean doesOverride)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |