|
||||||||||
| 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.ProbeControl
public class ProbeControl
A widget to display data values at one point in the 2d or 3d data field. Can show several parameters' values at the point. Can choose method of field sampling - nearest grid point value or weighted average. Can change levels.
| Nested Class Summary | |
|---|---|
class |
ProbeControl.LevelEditor
Class LevelEditor, used for selecting levels in table column |
class |
ProbeControl.SamplingEditor
If user clicks on the "sampling" column, a popup menu appears with choices for the grid value sampling method. |
| Nested classes/interfaces inherited from class ucar.unidata.idv.control.DisplayControlImpl |
|---|
DisplayControlImpl.SideLegendLabel |
| Field Summary | |
|---|---|
static int |
COL_EXTRA
Column value property |
static int |
COL_LEVEL
Column level property |
static int |
COL_NAME
Column name property |
static int |
COL_SAMPLING
Column sampling property |
static int |
COL_VALUE
Column value property |
static int |
NUM_COLS
number of columns |
static String |
SHARE_CHOICES
ID for sharing choices |
static String |
SHARE_LEVELS
ID for sharing levels |
static String |
SHARE_METHODS
ID for sharing sampling methods |
static String |
SHARE_POSITION
ID for sharing position |
| Fields inherited from class ucar.unidata.idv.control.DisplayControlImpl |
|---|
categories, colorScaleInfo, colorScales, contourInfo, contourInfoParams, contourWidget, controlContext, ctw, dataSelection, defaultView, defaultViewManager, DISPLAY_LIST_NAME, displayListTable, displayListUsesColor, displayMasters, displayUnit, helpUrl, initNoteText, instantiatedWithNoData, noteTextArea, noteWrapper, paramName, requestProperties, selectRangeWidget, settingVisibility, sharables, showNoteText, skipSlider, version, viewManagers, ZFUDGE |
| Fields inherited from interface ucar.unidata.idv.DisplayControl |
|---|
BOTTOM_LEGEND, DEFAULT_PROBEFORMAT, DOTIMEDRIVER, PREF_PREFIX, PREF_PROBEFORMAT, PREF_REMOVEONWINDOWCLOSE, PREF_SAMPLING_MODE, PREF_STANDALONE_REMOVEONCLOSE, PREF_STANDALONE_REMOVEONCLOSE_ASK, PROP_LEGENDICON, RASTERMODE_SHOWALL, RASTERMODE_SHOWNONRASTER, RASTERMODE_SHOWRASTER, SIDE_LEGEND |
| Constructor Summary | |
|---|---|
ProbeControl()
Cstr; sets flags; see init() for creation actions. |
|
| Method Summary | |
|---|---|
protected void |
addDisplaySettings(DisplaySettingsDialog dsd)
Add display settings for this control |
protected void |
addLabelMacros(String template,
List patterns,
List values)
Add any macro name/value pairs. |
protected void |
addNewData(List newChoices)
Override base class method which is called when the user has selected new data choices. |
protected void |
addPropertiesComponents(JTabbedPane jtp)
_more_ |
void |
applyPreferences()
Apply the preferences. |
void |
changePointParameter(Object[] param)
Change the parameter to use |
boolean |
constrainDragPoint(float[] position)
_more_ |
void |
decreaseProbeSize()
Decrease the probe size |
boolean |
doApplyProperties()
_more_ |
Container |
doMakeContents()
Make the UI for this display control. |
void |
doRemove()
Remove this display. |
void |
exportCsv()
Export the current time as csv |
void |
exportCsvAllTimes()
Export all times as csv |
void |
exportToCsv(Real[] times)
Export all times as csv |
protected String |
getChangeParameterLabel()
Return the appropriate label text for the menu. |
TimeSeriesChart |
getChart()
Get the chart |
String |
getColorWidgetLabel()
Return the label that is to be used for the color widget This allows derived classes to override this and provide their own name, |
protected List |
getCursorReadoutInner(EarthLocation elt,
Real animationValue,
int animationStep,
List<ReadoutInfo> samples)
Return the list of html for doing the cursor readout |
DataChoice |
getDataChoiceAtRow(int row)
Get the DataChoice associated with the parameter at a particular row. |
String |
getDataTemplate()
Get the DataTemplate property. |
protected Set |
getDataTimeSet()
Collect the time animation set from the displayables. |
protected void |
getEditMenuItems(List items,
boolean forMenuBar)
Get edit menu items |
protected JComponent |
getExtraLegendComponent(int legendType)
Assume that any display controls that have a color table widget will want the color table to show up in the legend. |
Image |
getImage(String what)
get the image for what |
List<ProbeRowInfo> |
getInfos()
Get the Infos property. |
boolean |
getKeepProbeAtHeight()
Get the KeepProbeAtHeight property. |
void |
getLegendLabels(List labels,
int legendType)
Append any label information to the list of labels. |
Real[] |
getLevelsAtRow(int row)
Get the list of levels for a particular parameter (row) |
protected String |
getLongParamName()
Override base class method to use the list of data choices to get the long parameter name |
protected void |
getMacroNames(List names,
List labels)
Add any macro name/label pairs |
String |
getMarker()
Get the Marker property. |
RealTuple |
getPosition()
Set the probe position property; used by XML persistence. |
double |
getProbeRadius()
Get the ProbeRadius property. |
protected void |
getSaveMenuItems(List items,
boolean forMenuBar)
Add the relevant file menu items into the list |
boolean |
getShowSunriseSunset()
Get the ShowSunriseSunset property. |
boolean |
getShowTable()
Get the ShowTable property. |
boolean |
getShowTableInLegend()
Get the ShowTableInLegend property. |
TimeSeriesChart |
getTimeSeries()
Get the TimeSeries property. |
protected void |
getViewMenuItems(List items,
boolean forMenuBar)
Make the view menu items |
boolean |
getXFixed()
Get the XFixed property. |
boolean |
getYFixed()
Get the YFixed property. |
boolean |
getZFixed()
Get the ZFixed property. |
boolean |
handleAddPoint(float[] x)
_more_ |
boolean |
handleDragDirect(VisADRay ray,
boolean first,
int mouseModifiers)
_more_ |
boolean |
haveLevelsAtRow(int row)
see if there are levels assigned to this row (parameter); some data is 2d and has no levels. |
void |
increaseProbeSize()
Increase the probe size |
boolean |
init(List choices)
Set up new probe. |
void |
initDone()
Called after init. |
protected void |
popupDataDialog(String dialogMessage,
Component from,
boolean multiples,
List categories)
Popup the data dialog; override superclass to allow multiple selections. |
protected void |
processNewData(List newChoices)
Override base class method which is called when the user has selected new data choices. |
void |
projectionChanged()
Respond to a change in the display's projection. |
void |
propertyChange(PropertyChangeEvent evt)
Property change method. |
void |
receiveShareData(Sharable from,
Object dataId,
Object[] data)
Method called by other classes that share the state |
protected void |
resetData()
Override base class method to just trigger a redisplay of the data. |
protected void |
resetData(boolean clearCache)
Reset the data. |
void |
resetProbePosition()
Reset the position of the probe to the center. |
void |
resetProbePosition(double lat,
double lon,
double alt)
Reset the position of the probe to the center. |
void |
setAltitudes(List l)
Deprecated. Keep around for legacy bundles |
void |
setDataTemplate(String value)
Set the DataTemplate property. |
void |
setEarthLocation(EarthLocation el)
Set the earth location |
void |
setInfos(List<ProbeRowInfo> value)
Set the Infos property. |
void |
setKeepProbeAtHeight(boolean value)
Set the KeepProbeAtHeight property. |
void |
setLevels(List l)
Deprecated. Keep around for legacy bundles |
void |
setMarker(String value)
Set the Marker property. |
void |
setMethods(List l)
Deprecated. Keep around for legacy bundles |
void |
setPointSize(float value)
Set the PointSize property. |
void |
setPosition(RealTuple p)
Set the probe position property; used by XML persistence. |
void |
setProbeRadius(double value)
Set the ProbeRadius property. |
void |
setShowSunriseSunset(boolean value)
Set the ShowSunriseSunset property. |
void |
setShowTable(boolean value)
Set the ShowTable property. |
void |
setShowTableInLegend(boolean value)
Set the ShowTableInLegend property. |
void |
setShowThumbNail(boolean value)
Set the ShowThumbNail property. |
void |
setSounds(List l)
Deprecated. Keep around for legacy bundles |
void |
setTimeSeries(TimeSeriesChart value)
Set the TimeSeries property. |
void |
setUnits(List l)
Deprecated. Keep around for legacy bundles |
void |
setXFixed(boolean value)
Set the XFixed property. |
void |
setYFixed(boolean value)
Set the YFixed property. |
void |
setZFixed(boolean value)
Set the ZFixed property. |
protected boolean |
shouldAddAnimationListener()
A hook to allow derived classes to tell us to add this as an animation listener |
void |
showLineProperties(ProbeRowInfo rowInfo)
Show the properties dialog for the chart line |
void |
showSoundDialog(ProbeRowInfo info)
Show the sound dialog for the row |
protected void |
timeChanged(Real time)
Respond to a timeChange event |
protected void |
updateLegendLabel()
This method is called to update the legend labels when some state has changed in this control that is reflected in the labels. |
void |
updatePosition()
Make new values in data probe display (readout table) to match chages in location or sampling of data. |
| Methods inherited from class ucar.unidata.idv.control.DisplayControlBase |
|---|
boxToEarth, boxToEarth, boxToEarth, boxToEarth, boxToEarth, boxToScreen, calculateRectangle, createStationTfo, earthToBox, earthToBox, earthToBoxTuple, earthToScreen, formatLevels, getLabeledReal, getLevelReal, getScreenCenter, getSelectedStation, getTmpProperty, isLeftButtonDown, logException, logException, makeEarthLocation, putTmpProperty, removeTmpProperty, screenToBox, screenToBox, screenToEarth, setStations, setStations, toBox, toEarth, userErrorMessage, userMessage |
| Methods inherited from class ucar.unidata.collab.SharableImpl |
|---|
applySharableProperties, doShare, doShare, doShareExternal, doShareInternal, getReceiveShareTime, getSharablePropertiesComponent, getShareGroup, getSharing, getUniqueId, initSharable, removeSharable, setReceiveShareTime, 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.idv.DisplayControl |
|---|
getTmpProperty, putTmpProperty, removeTmpProperty |
| Methods inherited from interface ucar.unidata.collab.Sharable |
|---|
getReceiveShareTime, getShareGroup, getSharing, getUniqueId, setReceiveShareTime |
| Field Detail |
|---|
public static final String SHARE_POSITION
public static final String SHARE_CHOICES
public static final String SHARE_METHODS
public static final String SHARE_LEVELS
public static final int COL_NAME
public static final int COL_VALUE
public static final int COL_EXTRA
public static final int COL_LEVEL
public static final int COL_SAMPLING
public static final int NUM_COLS
| Constructor Detail |
|---|
public ProbeControl()
| Method Detail |
|---|
public boolean init(List choices)
throws VisADException,
RemoteException
init in class DisplayControlImplchoices - a list of DataChoices
RemoteException - Java RMI error
VisADException - VisAD Errorpublic void initDone()
initDone in class DisplayControlImplprotected void addPropertiesComponents(JTabbedPane jtp)
addPropertiesComponents in class DisplayControlImpljtp - _more_public boolean doApplyProperties()
doApplyProperties in class DisplayControlImplpublic String getColorWidgetLabel()
getColorWidgetLabel in class DisplayControlImpl
protected void getViewMenuItems(List items,
boolean forMenuBar)
getViewMenuItems in class DisplayControlImplitems - List of menu itemsforMenuBar - forMenuBarprotected boolean shouldAddAnimationListener()
shouldAddAnimationListener in class DisplayControlImplpublic void setEarthLocation(EarthLocation el)
el - the earth locationprotected void addDisplaySettings(DisplaySettingsDialog dsd)
addDisplaySettings in class DisplayControlImpldsd - dialog to add topublic void resetProbePosition()
public void resetProbePosition(double lat,
double lon,
double alt)
lat - latlon - lonalt - alt
protected void getEditMenuItems(List items,
boolean forMenuBar)
getEditMenuItems in class DisplayControlImplitems - list of menu itemsforMenuBar - true if for the menu bar
public void receiveShareData(Sharable from,
Object dataId,
Object[] data)
receiveShareData in interface SharablereceiveShareData in class DisplayControlImplfrom - other class.dataId - type of sharingdata - Array of data being shared. In this case, the first
(and only?) object in the array is the levelprotected String getLongParamName()
getLongParamName in class DisplayControlImplpublic void projectionChanged()
projectionChanged in interface DisplayControlprojectionChanged in class DisplayControlImpl
protected void getMacroNames(List names,
List labels)
getMacroNames in class DisplayControlImplnames - List of macro nameslabels - List of macro labels
protected void addLabelMacros(String template,
List patterns,
List values)
addLabelMacros in class DisplayControlImpltemplate - templatepatterns - The macro namesvalues - The macro values
protected Set getDataTimeSet()
throws RemoteException,
VisADException
getDataTimeSet in class DisplayControlImplRemoteException - On badness
VisADException - On badness
protected void resetData()
throws VisADException,
RemoteException
resetData in class DisplayControlImplRemoteException - Java RMI error
VisADException - VisAD Error
protected void resetData(boolean clearCache)
throws VisADException,
RemoteException
clearCache - If true then clear the cached data in the rows
RemoteException - Java RMI error
VisADException - VisAD Error
protected void addNewData(List newChoices)
throws VisADException,
RemoteException
addNewData in class DisplayControlImplnewChoices - new list of choices
RemoteException - Java RMI error
VisADException - VisAD Error
protected void processNewData(List newChoices)
throws VisADException,
RemoteException
newChoices - new list of choices
RemoteException - Java RMI error
VisADException - VisAD Errorprotected JComponent getExtraLegendComponent(int legendType)
getExtraLegendComponent in class DisplayControlImpllegendType - type of legend
public void getLegendLabels(List labels,
int legendType)
getLegendLabels in class DisplayControlImpllabels - in/out list of labelslegendType - The type of legend, BOTTOM_LEGEND or SIDE_LEGENDpublic void setPosition(RealTuple p)
p - probe position
public RealTuple getPosition()
throws VisADException,
RemoteException
null.
RemoteException - Java RMI error
VisADException - VisAD Error
public void doRemove()
throws RemoteException,
VisADException
doRemove in interface DisplayControldoRemove in class DisplayControlImplRemoteException - Java RMI error
VisADException - VisAD Errorprotected void timeChanged(Real time)
timeChanged in class DisplayControlImpltime - new time
public Image getImage(String what)
throws Exception
getImage in class DisplayControlImplwhat - the thing to get
Exception - problem (can this be more specific?)
public boolean handleDragDirect(VisADRay ray,
boolean first,
int mouseModifiers)
handleDragDirect in interface DisplayableData.DragAdapterray - _more_first - _more_mouseModifiers - _more_
public boolean handleAddPoint(float[] x)
handleAddPoint in interface DisplayableData.DragAdapterx - _more_
public boolean constrainDragPoint(float[] position)
constrainDragPoint in interface DisplayableData.DragAdapterposition - _more_
public void propertyChange(PropertyChangeEvent evt)
propertyChange in interface PropertyChangeListenerpropertyChange in class DisplayControlImplevt - event to act onpublic Real[] getLevelsAtRow(int row)
row - row for parameter
public boolean haveLevelsAtRow(int row)
row - row to check
public void changePointParameter(Object[] param)
param - The parameterpublic Container doMakeContents()
doMakeContents in class DisplayControlImpl
protected void popupDataDialog(String dialogMessage,
Component from,
boolean multiples,
List categories)
popupDataDialog in class DisplayControlImpldialogMessage - the dialog messagefrom - component to latch on tomultiples - true to support multiple selectionscategories - data categories of params to showpublic void showLineProperties(ProbeRowInfo rowInfo)
rowInfo - The chrt entry to show properties forpublic void showSoundDialog(ProbeRowInfo info)
info - the rowpublic DataChoice getDataChoiceAtRow(int row)
row - row index
protected String getChangeParameterLabel()
getChangeParameterLabel in class DisplayControlImpl
public void updatePosition()
throws VisADException,
RemoteException
RemoteException - Java RMI error
VisADException - VisAD Errorpublic void applyPreferences()
applyPreferences in interface DisplayControlapplyPreferences in class DisplayControlImplprotected void updateLegendLabel()
updateLegendLabel in class DisplayControlImpl
protected List getCursorReadoutInner(EarthLocation elt,
Real animationValue,
int animationStep,
List<ReadoutInfo> samples)
throws Exception
getCursorReadoutInner in class DisplayControlImplelt - The locationanimationValue - The time animationanimationStep - Which step in the animationsamples - _more_
Exception - On badness
protected void getSaveMenuItems(List items,
boolean forMenuBar)
getSaveMenuItems in class DisplayControlImplitems - List of menu itemsforMenuBar - Is this for the menu in the window's menu bar or
for a popup menu in the legendpublic void exportCsv()
public void exportCsvAllTimes()
public void exportToCsv(Real[] times)
times - export given times as csvpublic void setDataTemplate(String value)
value - The new value for DataTemplatepublic String getDataTemplate()
public void setXFixed(boolean value)
value - The new value for XFixedpublic boolean getXFixed()
public void setYFixed(boolean value)
value - The new value for YFixedpublic boolean getYFixed()
public void setZFixed(boolean value)
value - The new value for ZFixedpublic boolean getZFixed()
public void setInfos(List<ProbeRowInfo> value)
value - The new value for Infospublic List<ProbeRowInfo> getInfos()
public void setAltitudes(List l)
l - list of altitudespublic void setLevels(List l)
l - list of levels for parameterspublic void setMethods(List l)
l - list of sampling methodspublic void setUnits(List l)
l - list of unitspublic void setSounds(List l)
l - list of soundspublic void increaseProbeSize()
public void decreaseProbeSize()
public void setPointSize(float value)
setPointSize in class DisplayControlImplvalue - The new value for PointSizepublic void setMarker(String value)
value - The new value for Markerpublic String getMarker()
public void setTimeSeries(TimeSeriesChart value)
value - The new value for TimeSeriespublic TimeSeriesChart getTimeSeries()
public TimeSeriesChart getChart()
public void setShowThumbNail(boolean value)
value - The new value for ShowThumbNailpublic void setShowTable(boolean value)
value - The new value for ShowTablepublic boolean getShowTable()
public void setShowTableInLegend(boolean value)
value - The new value for ShowTablepublic boolean getShowTableInLegend()
public void setShowSunriseSunset(boolean value)
value - The new value for ShowSunriseSunsetpublic boolean getShowSunriseSunset()
public void setKeepProbeAtHeight(boolean value)
value - The new value for KeepProbeAtHeightpublic boolean getKeepProbeAtHeight()
public void setProbeRadius(double value)
value - The new value for ProbeRadiuspublic double getProbeRadius()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||