|
||||||||||
| 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.PlanViewControl
ucar.unidata.idv.control.FlowPlanViewControl
public class FlowPlanViewControl
A plan view control for flow data (vector or wind barbs)
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class ucar.unidata.idv.control.DisplayControlImpl |
|---|
DisplayControlImpl.SideLegendLabel |
| Field Summary | |
|---|---|
protected float |
scaleFactor
a scale factor |
| Fields inherited from class ucar.unidata.idv.control.PlanViewControl |
|---|
currentLevel, currentLevels, currentSlice, datachoice, levelReadout, MACRO_LEVEL, SHARE_LEVEL |
| 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 | |
|---|---|
FlowPlanViewControl()
Create a new FlowPlanViewControl; set attribute flags |
|
| Method Summary | |
|---|---|
protected void |
addTopographyMap()
Wrapper around GridDisplayControl.addTopographyMap(int) to allow subclasses
to set their own index. |
protected DisplayableData |
createPlanDisplay()
Create the Displayable for the data depiction. |
void |
densitySliderChanged(int value)
The streamline density slider changed |
protected JComponent |
doMakeDensityComponent()
Create the streamline density slider |
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 color table widget label text. |
void |
getControlWidgets(List controlWidgets)
Get control widgets special to this control. |
Range |
getFlowRange()
Get the flow range. |
float |
getFlowScale()
Get the flow scale. |
boolean |
getIsThreeComponents()
Get the use 3 components property. |
protected Range |
getLevelColorRange()
Get the range for the current slice. |
float |
getStreamlineDensity()
Get the streamline density. |
boolean |
getStreamlines()
Get the streamline property. |
boolean |
getWindbarbs()
Get the wind barb property. |
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 |
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)
Set the flow scale. |
void |
setIsThreeComponents(boolean v)
Set the use 3 components property. |
void |
setScaleFactor(float s)
Set the scale factor. |
void |
setStreamlineDensity(float f)
Set the streamline density. |
void |
setStreamlines(boolean v)
Set the streamline property. |
void |
setWindbarbs(boolean v)
Set the wind barb property. |
boolean |
showColorControlWidget()
Show the color control widget in the widgets if FLAG_COLOR is set. |
| Methods inherited from class ucar.unidata.idv.control.GridDisplayControl |
|---|
actionPerformed, addTopographyMap, convertColorRange, doMakeContourLevelControl, doMakeLevelControl, doMakeLevelControl, getColorParamName, getColorUnit, getContourInfo, getDataProjection, getDefaultContourInfo, getDisplayUnit, getGridDataInstance, getInitialColorTable, getInitialRange, getRawDataUnit, initializeDefaultContourInfo, isDisplayUnitAlsoColorUnit, setLevel |
| 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 FlowPlanViewControl()
| Method Detail |
|---|
public String getColorWidgetLabel()
getColorWidgetLabel in class DisplayControlImpl
protected DisplayableData createPlanDisplay()
throws VisADException,
RemoteException
Displayable for the data depiction.
createPlanDisplay in class PlanViewControlRemoteException - Java RMI error
VisADException - VisAD error
protected boolean setData(DataChoice dataChoice)
throws VisADException,
RemoteException
setData in class PlanViewControldataChoice - choice that describes the data to be loaded.
RemoteException - Java RMI error
VisADException - VisAD Error
public void getControlWidgets(List controlWidgets)
throws VisADException,
RemoteException
getControlWidgets in class PlanViewControlcontrolWidgets - list of control widget from the superclass
RemoteException - Java RMI error
VisADException - VisAD errorprotected JComponent doMakeDensityComponent()
protected JComponent doMakeFlowRangeComponent()
public void receiveShareData(Sharable from,
Object dataId,
Object[] data)
receiveShareData in interface SharablereceiveShareData in class PlanViewControlfrom - 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 void densitySliderChanged(int value)
value - slider value
protected void addTopographyMap()
throws VisADException,
RemoteException
GridDisplayControl.addTopographyMap(int) to allow subclasses
to set their own index.
addTopographyMap in class PlanViewControlRemoteException - Java RMI error
VisADException - VisAD errorpublic void setStreamlines(boolean v)
v - true to use streamlinespublic boolean getStreamlines()
public void setWindbarbs(boolean v)
v - true if you want to use wind barbspublic boolean getWindbarbs()
public void setIsThreeComponents(boolean v)
v - true if using u, v and wpublic boolean getIsThreeComponents()
public void setScaleFactor(float s)
s - the new factorpublic float getFlowScale()
public void setFlowScale(float f)
f - new flow scalepublic Range getFlowRange()
public void setFlowRange(Range f)
f - new flow rangepublic float getStreamlineDensity()
public void setStreamlineDensity(float f)
f - new flow scalepublic Range getColorRangeFromData()
getColorRangeFromData in class GridDisplayControlprotected Range getLevelColorRange()
getLevelColorRange in class PlanViewControlprotected boolean haveMultipleFields()
haveMultipleFields in class PlanViewControlprotected int getColorRangeIndex()
getColorRangeIndex in class PlanViewControlpublic boolean showColorControlWidget()
showColorControlWidget in class DisplayControlImpl
|
||||||||||