|
||||||||||
| 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.CrossSectionControl
ucar.unidata.idv.control.FlowCrossSectionControl
public class FlowCrossSectionControl
A cross section control for depicting flow (vectors or wind barbs)
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class ucar.unidata.idv.control.DisplayControlImpl |
|---|
DisplayControlImpl.SideLegendLabel |
| Field Summary | |
|---|---|
protected float |
scaleFactor
scaling factor |
| Fields inherited from class ucar.unidata.idv.control.CrossSectionControl |
|---|
coordTrans, crossSectionView, csSelector, dataIs3D, displayIs3D, endCoord, endLocation, SHARE_XSLINE, sizeX, sizeY, startCoord, startLocation, vcsDisplay, xsDisplay |
| 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.control.FlowDisplayControl |
|---|
SHARE_FLOWRANGE, SHARE_FLOWSCALE |
| 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 | |
|---|---|
FlowCrossSectionControl()
Create a new FlowCrossSectionControl; set attribute flags |
|
| Method Summary | |
|---|---|
protected DisplayableData |
createVCSDisplay()
Create the depiction for the data in the control window |
protected DisplayableData |
createXSDisplay()
Create the depiction for the data in the main window |
protected JComponent |
doMakeFlowRangeComponent()
Create the streamline density slider |
Range |
getColorRangeFromData()
Return the range attribute of the colorTable (if non-null) else return null; |
protected int |
getColorRangeIndex()
Returns the index to use in the GridDataInstance array of ranges for color ranges. |
String |
getColorWidgetLabel()
Get the label for the color widget |
void |
getControlWidgets(List controlWidgets)
Get any extra control widgets |
Range |
getFlowRange()
Get the flow range. |
float |
getFlowScale()
Get the flow scale factor. |
boolean |
getIsThreeComponents()
Get the use 3 components property. |
boolean |
getWindbarbs()
Get whether this is depicting wind barbs or not. |
protected boolean |
haveMultipleFields()
Return whether the Data held by this display control contains multiple fields (e.g., for the isosurface colored by another parameter |
void |
initDone()
Actions to perform after init(). |
protected void |
loadData(FieldImpl fieldImpl)
Load the external display and the local display with this data of a vertical cross section. |
void |
receiveShareData(Sharable from,
Object dataId,
Object[] data)
Method called by other classes that share the the state. |
protected boolean |
setData(DataChoice dataChoice)
Called to initialize this control from the given dataChoice; override super class instance to set skip factor before displaying data. |
void |
setFlowRange(Range f)
Set the flow range. |
void |
setFlowScale(float f)
Get the flow scale factor. |
void |
setIsThreeComponents(boolean v)
Set the use 3 components property. |
void |
setWindbarbs(boolean v)
Set whether this is depicting wind barbs or not. |
boolean |
showColorControlWidget()
Show the color control widget in the widgets if FLAG_COLOR is set. |
| 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 final float scaleFactor
| Constructor Detail |
|---|
public FlowCrossSectionControl()
| Method Detail |
|---|
public void initDone()
initDone in class CrossSectionControlCrossSectionControl.init(ucar.unidata.data.DataChoice)
protected void loadData(FieldImpl fieldImpl)
throws VisADException,
RemoteException
loadData in class CrossSectionControlfieldImpl - the data for the depiction
RemoteException - Java RMI error
VisADException - VisAD error
protected boolean setData(DataChoice dataChoice)
throws VisADException,
RemoteException
setData in class CrossSectionControldataChoice - choice that describes the data to be loaded.
RemoteException - Java RMI error
VisADException - VisAD Errorpublic String getColorWidgetLabel()
getColorWidgetLabel in class DisplayControlImpl
protected DisplayableData createXSDisplay()
throws VisADException,
RemoteException
createXSDisplay in class CrossSectionControlRemoteException - Java RMI error
VisADException - VisAD error
protected DisplayableData createVCSDisplay()
throws VisADException,
RemoteException
createVCSDisplay in class CrossSectionControlRemoteException - Java RMI error
VisADException - VisAD error
public void getControlWidgets(List controlWidgets)
throws VisADException,
RemoteException
getControlWidgets in class CrossSectionControlcontrolWidgets - control widgets special to this control
RemoteException - Java RMI error
VisADException - VisAD errorprotected JComponent doMakeFlowRangeComponent()
public float getFlowScale()
public void setFlowScale(float f)
f - new flow scalepublic void setWindbarbs(boolean v)
v - true for wind barbspublic boolean getWindbarbs()
protected boolean haveMultipleFields()
haveMultipleFields in class GridDisplayControlpublic void setIsThreeComponents(boolean v)
v - true if using u, v and wpublic boolean getIsThreeComponents()
protected int getColorRangeIndex()
getColorRangeIndex in class GridDisplayControlpublic Range getFlowRange()
public void setFlowRange(Range f)
f - new flow rangepublic Range getColorRangeFromData()
getColorRangeFromData in class GridDisplayControl
public void receiveShareData(Sharable from,
Object dataId,
Object[] data)
receiveShareData in interface SharablereceiveShareData in class CrossSectionControlfrom - other class.dataId - type of sharingdata - Array of data being shared. In this case, the first
(and only?) object in the array is the levelpublic boolean showColorControlWidget()
showColorControlWidget in class DisplayControlImpl
|
||||||||||
| PREV CLASS N | ||||||||||