|
||||||||||
| 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.PlanViewControl |
|---|
PlanViewControl.VerticalRangeWidget |
| 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, haveEnsemble, 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, 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.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, RASTERMODE_SHOWALL, RASTERMODE_SHOWNONRASTER, RASTERMODE_SHOWRASTER, SIDE_LEGEND |
| Constructor Summary | |
|---|---|
FlowPlanViewControl()
Create a new FlowPlanViewControl; set attribute flags |
|
| Method Summary | |
|---|---|
protected void |
addDisplaySettings(DisplaySettingsDialog dsd)
Add DisplaySettings appropriate for this display |
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 |
protected String |
formatForCursorReadout(RealTuple rt)
Format a real for the cursor readout |
boolean |
getAutoSize()
Get the autosize property Used by XML persistence |
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. |
protected List |
getCursorReadoutInner(EarthLocation el,
Real animationValue,
int animationStep,
List<ReadoutInfo> samples)
Get the cursor data |
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 |
projectionChanged()
Method to call if projection changes. |
void |
receiveShareData(Sharable from,
Object dataId,
Object[] data)
Method called by other classes that share the the state. |
void |
setAutoSize(boolean auto)
Set the autosize property Used by XML persistence |
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 |
setSkipValue(int value)
Set the skip value |
void |
setStreamlineDensity(float f)
Set the streamline density. |
void |
setStreamlineDensity(float f,
boolean fromSlider)
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.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 |
|---|
protected final float scaleFactor
| Constructor Detail |
|---|
public FlowPlanViewControl()
| Method Detail |
|---|
public void projectionChanged()
projectionChanged in interface DisplayControlprojectionChanged in class PlanViewControlpublic 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 setSkipValue(int value)
setSkipValue in class DisplayControlImplvalue - the valuepublic 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 factorprotected void addDisplaySettings(DisplaySettingsDialog dsd)
addDisplaySettings in class PlanViewControldsd - the dialog to add topublic boolean getAutoSize()
public void setAutoSize(boolean auto)
auto - new autosize valuepublic 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 scale
public void setStreamlineDensity(float f,
boolean fromSlider)
f - valuefromSlider - true if from sliderpublic 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
protected List getCursorReadoutInner(EarthLocation el,
Real animationValue,
int animationStep,
List<ReadoutInfo> samples)
throws Exception
getCursorReadoutInner in class PlanViewControlel - earth locationanimationValue - the animation valueanimationStep - the animation stepsamples - the list of sample readouts
Exception - problem getting the data
protected String formatForCursorReadout(RealTuple rt)
throws VisADException,
RemoteException
rt - the realtuple
RemoteException - Java RMI error
VisADException - VisAD error
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||