|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.collab.SharableImpl
ucar.unidata.idv.control.DisplayControlBase
ucar.unidata.idv.control.DisplayControlImpl
ucar.unidata.idv.control.ObsDisplayControl
public abstract class ObsDisplayControl
A DisplayControl for station models
| Nested Class Summary | |
|---|---|
protected static class |
ObsDisplayControl.RealWrapper
Class RealWrapper Used in the JTable to show a formatted string and support sorting on the Real value |
| Nested classes/interfaces inherited from class ucar.unidata.idv.control.DisplayControlImpl |
|---|
DisplayControlImpl.SideLegendLabel |
| Field Summary | |
|---|---|
protected List |
colNames
Holds the column names |
protected String |
colString
column string |
protected static String |
FIELD_ALL
Represents when we use all fields |
protected static DecimalFormat |
format
decimal formatter |
protected static String |
LABEL_ALT
Label for altitude fields |
protected static String |
LABEL_LAT
Label for latitude fields |
protected static String |
LABEL_LON
Label for longitude fields |
protected static String |
LABEL_TIME
Label for Time fields |
| Fields inherited from class ucar.unidata.idv.control.DisplayControlImpl |
|---|
categories, colorScaleInfo, colorScales, contourInfo, contourInfoParams, controlContext, ctw, cw, dataSelection, defaultView, defaultViewManager, DISPLAY_LIST_NAME, displayListTable, displayMasters, displayUnit, helpUrl, initNoteText, instantiatedWithNoData, noteTextArea, noteWrapper, paramName, requestProperties, settingVisibility, sharables, showNoteText, skipSlider, srw, version, viewManagers |
| Fields inherited from interface ucar.unidata.idv.DisplayControl |
|---|
BOTTOM_LEGEND, DEFAULT_PROBEFORMAT, PREF_PREFIX, PREF_PROBEFORMAT, PREF_REMOVEONWINDOWCLOSE, PREF_SAMPLING_MODE, PREF_STANDALONE_REMOVEONCLOSE, PREF_STANDALONE_REMOVEONCLOSE_ASK, PROP_LEGENDICON, SIDE_LEGEND |
| Constructor Summary | |
|---|---|
ObsDisplayControl()
Default ctor |
|
| Method Summary | |
|---|---|
protected void |
addDisplaySettings(DisplaySettingsDialog dsd)
Add properties to the display settings dialog |
void |
applyPreferences()
Apply the preferences. |
protected FieldImpl |
doDeclutterTime(FieldImpl obs)
Declutter in time. |
protected DataInstance |
doMakeDataInstance(DataChoice dataChoice)
Creates and returns the DataInstance
corresponding to a DataChoice. |
protected JPanel |
doMakeFieldSelector()
Make the UI contents for this control. |
protected JPanel |
doMakeShowRawSelector()
Make a selector for showing raw data |
void |
doRemove()
Remove this displayable |
protected void |
fieldSelectorChanged()
Used to notify derived classes of when the field selector has changed |
String |
getColString()
Get the ColString property. |
protected Object |
getColValue(Data data,
MathType type,
boolean useFormatPref)
Get the column value and add it to the html |
protected Object |
getColValue(Data data,
MathType type,
boolean useFormatPref,
Unit displayUnit)
Get the column value and add it to the html |
protected Unit |
getDisplayUnit(Scalar data)
Get the display unit to use for the data |
protected String |
getDisplayUnitName(Scalar data)
Get the unit string for the specified Scalar |
protected List |
getFieldsToShow(TupleType tt)
Return a list of the names of the fields to use |
protected int |
getIndex(TupleType tType,
String commaSeparatedNames)
Get the index of the comma separated names of values in the tuple |
protected int[] |
getIndicesToShow(TupleType tt)
Return an array of the indexes in the obs to use |
protected String |
getParamLabel(String name)
Get the label to show to the user for the given param name. |
boolean |
getShowDataRaw()
Get the ShowDataRaw property. |
protected JComponent[] |
getTimeDeclutterComps()
Make the gui panel for the time decluttering |
boolean |
getTimeDeclutterEnabled()
Get the TimeDeclutterEnabled property. |
double |
getTimeDeclutterMinutes()
Get the TimeDeclutterMinutes property. |
protected TupleType |
getTupleType()
Override this in derived classes to get the TupleType of the obs |
protected boolean |
isIdParam(String name)
A utility to determine if the given param name is the station id |
void |
setColString(String value)
Set the ColString property. |
void |
setShowDataRaw(boolean value)
Set the ShowDataRaw property. |
void |
setTimeDeclutterEnabled(boolean value)
Set the TimeDeclutterEnabled property. |
void |
setTimeDeclutterMinutes(double value)
Set the TimeDeclutterMinutes property. |
void |
showFieldSelector()
Show the field selector window |
protected void |
timeDeclutterChanged()
Handle when the time declutering state has changed |
| Methods inherited from class ucar.unidata.idv.control.DisplayControlBase |
|---|
boxToEarth, boxToEarth, boxToEarth, boxToEarth, boxToEarth, boxToScreen, calculateRectangle, createStationTfo, earthToBox, earthToBox, earthToBoxTuple, earthToScreen, formatLevels, getScreenCenter, getSelectedStation, isLeftButtonDown, logException, logException, makeEarthLocation, screenToBox, screenToBox, screenToEarth, setStations, setStations, toBox, toEarth, userErrorMessage, userMessage |
| Methods inherited from class ucar.unidata.collab.SharableImpl |
|---|
applySharableProperties, doShare, doShare, doShareExternal, doShareInternal, getSharablePropertiesComponent, getShareGroup, getSharing, getUniqueId, initSharable, removeSharable, setShareGroup, setSharing, setUniqueId, showSharableDialog |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface ucar.unidata.collab.Sharable |
|---|
getShareGroup, getSharing, getUniqueId |
| Field Detail |
|---|
protected static final String FIELD_ALL
protected static DecimalFormat format
protected String colString
protected static String LABEL_LAT
protected static String LABEL_LON
protected static String LABEL_ALT
protected static String LABEL_TIME
protected List colNames
| Constructor Detail |
|---|
public ObsDisplayControl()
| Method Detail |
|---|
public void doRemove()
throws RemoteException,
VisADException
doRemove in interface DisplayControldoRemove in class DisplayControlImplVisADException - if a VisAD Failure occurs.
RemoteException - if a Java RMI failure occurs.
protected Object getColValue(Data data,
MathType type,
boolean useFormatPref)
data - data to searchtype - mathtype of the parameter for this columnuseFormatPref - use parameter readout preference for formatting
protected Object getColValue(Data data,
MathType type,
boolean useFormatPref,
Unit displayUnit)
data - data to searchtype - mathtype of the parameter for this columnuseFormatPref - use parameter readout preference for formattingdisplayUnit - The unit to use
protected String getDisplayUnitName(Scalar data)
data - real/text value
protected Unit getDisplayUnit(Scalar data)
data - data
public void applyPreferences()
applyPreferences in interface DisplayControlapplyPreferences in class DisplayControlImpl
protected FieldImpl doDeclutterTime(FieldImpl obs)
throws VisADException,
RemoteException
obs - initial field of observations.
RemoteException - Java RMI error
VisADException - VisAD Errorprotected void timeDeclutterChanged()
protected JComponent[] getTimeDeclutterComps()
protected boolean isIdParam(String name)
name - The param name
protected String getParamLabel(String name)
name - The param name
protected List getFieldsToShow(TupleType tt)
throws VisADException,
RemoteException
tt - The types we get the names from
RemoteException - When bad things happen
VisADException - When bad things happen
protected int[] getIndicesToShow(TupleType tt)
throws VisADException,
RemoteException
tt - The type
RemoteException - When bad things happen
VisADException - When bad things happen
protected int getIndex(TupleType tType,
String commaSeparatedNames)
tType - tuple type to searchcommaSeparatedNames - list of possible names (aliases)
public void showFieldSelector()
protected JPanel doMakeShowRawSelector()
protected JPanel doMakeFieldSelector()
protected void fieldSelectorChanged()
protected TupleType getTupleType()
throws RemoteException,
VisADException
RemoteException - When bad things happen
VisADException - When bad things happen
protected DataInstance doMakeDataInstance(DataChoice dataChoice)
throws RemoteException,
VisADException
Creates and returns the DataInstance
corresponding to a DataChoice. Returns
null if the DataInstance was
somehow invalid.
This method is invoked by the overridable method DisplayControlImpl.setData(DataChoice).
doMakeDataInstance in class DisplayControlImpldataChoice - The DataChoice from
which to create a
DataInstance.
DataInstance or
null.
VisADException - if a VisAD Failure occurs.
RemoteException - if a Java RMI failure occurs.public void setColString(String value)
value - The new value for ColStringpublic String getColString()
public void setShowDataRaw(boolean value)
value - The new value for ShowDataRawpublic boolean getShowDataRaw()
public void setTimeDeclutterMinut