|
||||||||||
| 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.GridDisplayControl
ucar.unidata.idv.control.LineProbeControl
ucar.unidata.idv.control.TimeHeightControl
public class TimeHeightControl
Given an earth-locared 3D VisAD Field with a time domain, make a 2D plot of the range data against height and time for one location on the Earth, and make related controls. The display is in its own window; there is also a related selector point on the other main map display which allows user to select and move the sample location on Earth.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class ucar.unidata.idv.control.DisplayControlImpl |
|---|
DisplayControlImpl.SideLegendLabel |
| Field Summary | |
|---|---|
static String |
SHARE_PROFILE
property for sharing the profile location |
protected TimeHeightViewManager |
timeHeightView
the control window's view manager |
| Fields inherited from class ucar.unidata.idv.control.LineProbeControl |
|---|
positionText |
| Fields inherited from class ucar.unidata.idv.control.GridDisplayControl |
|---|
CMD_CONTOURDIALOG, CMD_SETLEVELS, gridDataInstance, INITIAL_PROBE_EARTHLOCATION, log_, settingLevel |
| 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 | |
|---|---|
TimeHeightControl()
Default Contructor; sets flags. |
|
| Method Summary | |
|---|---|
void |
addPropertiesComponents(JTabbedPane jtp)
Add tabs to the properties dialog. |
void |
applyPreferences()
Apply the preferences. |
protected DisplayableData |
createDataDisplay()
Create the default data display if not showAsContours |
protected void |
displayTHForCoord(FieldImpl fi,
int NN)
Make a 2D display of the range values against domain coordinate # NN. |
boolean |
doApplyProperties()
Apply the properties |
protected void |
doMakeColorScales()
Actually create the color scales. |
protected Container |
doMakeContents()
Make the UI contents for this control window. |
Color |
getBackground()
Get the background color |
void |
getControlWidgets(List controlWidgets)
make widgets for check box for latest data time on left of x axis. |
DisplayableData |
getDataDisplay()
Return the Displayable created by createDataDisplay. |
Color |
getForeground()
Get the foreground color |
boolean |
getLatestOnLeft()
Get whether latest data is displayed on the left or right side of the plot. |
LatLonPoint |
getPositionLL(RealTuple position)
Get the position as a lat/lon point |
boolean |
getShowAsContours()
Get whether the display is an image or contours. |
protected ViewManager |
getTimeHeightViewManager()
Get the view manager for the control window. |
protected void |
getViewMenuItems(List items,
boolean forMenuBar)
Add items to the command menu. |
boolean |
init(DataChoice dataChoice)
Construct the display, frame, and controls |
void |
initDone()
Called after init(). |
void |
loadProfile(RealTuple position)
Given the location of the profile SelectorPoint, create a data set for a profile at that location, and load it in display. |
protected void |
probePositionChanged(RealTuple position)
Method to call when the probe position changes |
void |
setBackground(Color color)
Set the background color |
protected boolean |
setData(DataChoice dataChoice)
User has asked to see a different new parameter in this existing display. |
void |
setForeground(Color color)
Set the foreground color |
void |
setLatestOnLeft(boolean yesorno)
Set whether latest data is displayed on the left or right side of the plot. |
void |
setShowAsContours(boolean yesorno)
Get whether the display is shown as contours. |
void |
setShowAsImage(boolean yesorno)
Deprecated. use #setShowAsContours(boolean) instead |
| Methods inherited from class ucar.unidata.idv.control.LineProbeControl |
|---|
addLabelMacros, decreaseProbeSize, doMakeProbe, doMakeProbe, doMakeProbe, doMakeProbe, doMakeProbeMenu, doMoveProbe, getEditMenuItems, getGridCenterPosition, getInitialLinePosition, getInitialPosition, getLegendLabels, getMacroNames, getMarker, getPointSize, getPosition, increaseProbeSize, projectionChanged, propertyChange, receiveShareData, resetProbePosition, setMarker, setPointSize, setPosition, setProbePosition, setProbePosition, updateLegendLabel |
| 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 |
|---|
public static final String SHARE_PROFILE
protected TimeHeightViewManager timeHeightView
| Constructor Detail |
|---|
public TimeHeightControl()
| Method Detail |
|---|
public boolean init(DataChoice dataChoice)
throws VisADException,
RemoteException
init in class DisplayControlImpldataChoice - the data to use
RemoteException - Java RMI error
VisADException - VisAD Error
protected DisplayableData createDataDisplay()
throws VisADException,
RemoteException
RemoteException - Java RMI error
VisADException - VisAD Errorpublic DisplayableData getDataDisplay()
Displayable created by createDataDisplay.
DisplayableData
protected boolean setData(DataChoice dataChoice)
throws VisADException,
RemoteException
setData in class DisplayControlImpldataChoice - choice for data
RemoteException - Java RMI error
VisADException - VisAD Errorpublic void initDone()
initDone in class DisplayControlImplprotected ViewManager getTimeHeightViewManager()
protected Container doMakeContents()
throws VisADException,
RemoteException
doMakeContents in class DisplayControlImplRemoteException - Java RMI error
VisADException - VisAD Error
protected void displayTHForCoord(FieldImpl fi,
int NN)
throws VisADException,
RemoteException
fi - a VisAD FlatField or seqence of FlatFields with 3 or more
domain coordinates, manifold dimension 1.NN - an integer, the index number of the coordinate to use
as profile or y axis of plot (0,1,2,...)
RemoteException - Java RMI error
VisADException - VisAD Errorprotected void probePositionChanged(RealTuple position)
probePositionChanged in class LineProbeControlposition - new position
public void loadProfile(RealTuple position)
throws VisADException,
RemoteException
position - the location
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public void getControlWidgets(List controlWidgets)
throws VisADException,
RemoteException
getControlWidgets in class DisplayControlImplcontrolWidgets - to fill
RemoteException - Java RMI error
VisADException - VisAD Error
public LatLonPoint getPositionLL(RealTuple position)
throws VisADException,
RemoteException
position - position in XYZ or LatLonAlt space
RemoteException - Java RMI error
VisADException - VisAD Error
protected void getViewMenuItems(List items,
boolean forMenuBar)
getViewMenuItems in class DisplayControlImplitems - menu to add to.forMenuBar - whether for menu bar (true) or popup (false)
protected void doMakeColorScales()
throws VisADException,
RemoteException
doMakeColorScales in class DisplayControlImplRemoteException
VisADExceptionpublic void addPropertiesComponents(JTabbedPane jtp)
addPropertiesComponents in class DisplayControlImpljtp - the JTabbedPane to add topublic boolean doApplyProperties()
doApplyProperties in class DisplayControlImplpublic void applyPreferences()
applyPreferences in interface DisplayControlapplyPreferences in class DisplayControlImplpublic void setLatestOnLeft(boolean yesorno)
yesorno - true if want latest is on left.public boolean getLatestOnLeft()
true if latest is on left.public void setShowAsImage(boolean yesorno)
yesorno - true if want an image instead of contours.public void setShowAsContours(boolean yesorno)
yesorno - true if want contours instead of an image.public boolean getShowAsContours()
true if contours display, false if image