|
||||||||||
| 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.VerticalProfileControl
public class VerticalProfileControl
Given a VisAD Field, make a 2D plot of the range data against one of the 3 domain coordinates.
| Nested Class Summary | |
|---|---|
class |
VerticalProfileControl.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_NAME
Column name property |
static int |
COL_SAMPLING
Column sampling property |
static int |
NUM_COLS
number of columns |
static String |
SHARE_PROFILE
profile sharing property |
| 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 | |
|---|---|
VerticalProfileControl()
Default constructor; set attribute flags |
|
| Method Summary | |
|---|---|
protected void |
addNewData(List newChoices)
Override base class method which is called when the user has selected new data choices. |
protected Container |
doMakeContents()
Make the UI contents for this control. |
protected void |
doMoveProbe()
Method called when probe is moved. |
protected String |
getChangeParameterLabel()
Return the appropriate label text for the menu. |
VerticalProfileChart |
getChart()
Get the chart |
DataChoice |
getDataChoiceAtRow(int row)
Get the DataChoice associated with the parameter at a particular row. |
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. |
List |
getInfos()
Get the Infos property. |
protected void |
getSaveMenuItems(List items,
boolean forMenuBar)
Add the relevant file menu items into the list |
boolean |
getShowTable()
Get the ShowTable property. |
VerticalProfileChart |
getVerticalProfileChart()
Get the Chart property. |
protected void |
getViewMenuItems(List items,
boolean forMenuBar)
Make the view menu items |
boolean |
init(DataChoice dataChoice)
Construct the vertical profile display and control buttons |
boolean |
init(List choices)
Construct the vertical profile display and control buttons |
void |
initDone()
Called after init(). |
void |
loadProfile(RealTuple position)
Given the location of the profile SelectorPoint, and a FieldImpl for one or more times for animation, create a data set for a profile at the profile's SP location. |
protected void |
probePositionChanged(RealTuple position)
This gets called by the base class LineProbeControl class when the probe positon has changed (either through user interaction or through the sharing framework. |
protected void |
processNewData(List newChoices)
Override base class method which is called when the user has selected new data choices. |
protected void |
resetData()
Override base class method to just trigger a redisplay of the data. |
void |
setInfos(List value)
Set the Infos property. |
void |
setShowTable(boolean value)
Set the ShowTable property. |
void |
setShowThumbNail(boolean value)
Set the ShowThumbNail property. |
void |
setVerticalProfileChart(VerticalProfileChart value)
Set the Chart property. |
void |
showLineProperties(VerticalProfileInfo vpInfo)
Show the line properties editor |
protected void |
timeChanged(Real time)
Respond to a timeChange event |
| Methods inherited from class ucar.unidata.idv.control.LineProbeControl |
|---|
addLabelMacros, decreaseProbeSize, doMakeProbe, doMakeProbe, doMakeProbe, doMakeProbe, doMakeProbeMenu, 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 int COL_NAME
public static final int COL_SAMPLING
public static final int NUM_COLS
public static final String SHARE_PROFILE
| Constructor Detail |
|---|
public VerticalProfileControl()
| Method Detail |
|---|
public boolean init(DataChoice dataChoice)
throws VisADException,
RemoteException
init in class DisplayControlImpldataChoice - data description
VisADException - couldn't create a VisAD object needed
RemoteException - couldn't create a remote object needed
public boolean init(List choices)
throws VisADException,
RemoteException
init in class DisplayControlImplchoices - data choices
VisADException - couldn't create a VisAD object needed
RemoteException - couldn't create a remote object neededpublic void initDone()
initDone in class DisplayControlImplprotected JComponent getExtraLegendComponent(int legendType)
getExtraLegendComponent in class DisplayControlImpllegendType - type of legend
protected void timeChanged(Real time)
timeChanged in class DisplayControlImpltime - new time
protected Container doMakeContents()
throws VisADException,
RemoteException
doMakeContents in class DisplayControlImplRemoteException - 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 Error
protected void resetData()
throws VisADException,
RemoteException
resetData in class DisplayControlImplRemoteException - Java RMI error
VisADException - VisAD Errorprotected void doMoveProbe()
doMoveProbe in class LineProbeControl
protected void addNewData(List newChoices)
throws VisADException,
RemoteException
addNewData in class DisplayControlImplnewChoices - new list of choices
RemoteException - Java RMI error
VisADException - VisAD Errorpublic DataChoice getDataChoiceAtRow(int row)
row - row index
protected String getChangeParameterLabel()
getChangeParameterLabel in class DisplayControlImplprotected void probePositionChanged(RealTuple position)
probePositionChanged in class LineProbeControlposition - new position
public void loadProfile(RealTuple position)
throws VisADException,
RemoteException
position - new position for profile
VisADException - VisAD failure.
RemoteException - Java RMI failure.
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 legend
protected void getViewMenuItems(List items,
boolean forMenuBar)
getViewMenuItems in class DisplayControlImplitems - List of menu itemsforMenuBar - forMenuBarpublic void showLineProperties(VerticalProfileInfo vpInfo)
vpInfo - the VerticalProfileInfopublic void setShowThumbNail(boolean value)
value - The new value for ShowThumbNailpublic void setShowTable(boolean value)
value - The new value for ShowTablepublic boolean getShowTable()
public void setInfos(List value)
value - The new value for Infospublic List getInfos()