ucar.visad.display
Class WindBarbDisplayable

java.lang.Object
  extended by ucar.visad.display.Displayable
      extended by ucar.visad.display.DisplayableData
          extended by ucar.visad.display.RGBDisplayable
              extended by ucar.visad.display.FlowDisplayable
                  extended by ucar.visad.display.WindBarbDisplayable
All Implemented Interfaces:
GridDisplayable

public class WindBarbDisplayable
extends FlowDisplayable

Provides support for a Displayable to show wind with the conventional meteorological "wind barb" symbols.

Author:
IDV Development Team

Nested Class Summary
 
Nested classes/interfaces inherited from class ucar.visad.display.DisplayableData
DisplayableData.DragAdapter
 
Field Summary
 
Fields inherited from class ucar.visad.display.FlowDisplayable
COLOR, FLOW_TYPE, NH_ORIENTATION, SH_ORIENTATION, speedUnit
 
Fields inherited from class ucar.visad.display.RGBDisplayable
COLOR_PALETTE, POLYGON_FILL, POLYGON_LINE, POLYGON_POINT, RGB_REAL_TYPE
 
Fields inherited from class ucar.visad.display.DisplayableData
LINE_WIDTH, MANIPULABLE, renderer, VISIBLE
 
Fields inherited from class ucar.visad.display.Displayable
DISPLAY, parent, SCALAR_MAP_SET
 
Constructor Summary
WindBarbDisplayable(String name, RealTupleType rTT)
          Constructs from a name for the Displayable and the type of the parameter.
WindBarbDisplayable(String name, RealTupleType rTT, boolean useSpeedForColor)
          Constructs from a name for the Displayable and the type of the parameter.
 
Method Summary
 boolean get3DFlow()
          Check to see if this is 3D flow
protected  DataRenderer getDataRenderer()
          Returns the DataRenderer associated with this instance.
 void setFlowRange(double min, double max)
          Set the range of the flow maps
 void setRGBRealType(RealType realType)
          Sets the RealType of the RGB parameter.
 
Methods inherited from class ucar.visad.display.FlowDisplayable
cloneForDisplay, getAdjustFlow, getBarbOrientation, getFlowTuple, getSpeedTypeIndex, getStreamlinesEnabled, isCartesianWind, loadData, set3DFlow, setAdjustFlow, setAutoScale, setBarbOrientation, setColor, setColoredByAnother, setFlowMaps, setFlowRange, setFlowScale, setGrid3D, setIgnoreExtraParameters, setScalarMaps, setStreamlineDensity, setStreamlinesEnabled, setType, setUseSpeedForColor, useDisplayUnitForColor
 
Methods inherited from class ucar.visad.display.RGBDisplayable
getAutoScaleColorRange, getColorPalette, getCurvedSize, getPolygonMode, getRangeforColor, getRangeForColor, getRGBRealType, getSelectRealType, getUseRGBTypeForSelect, hasRange, hasSelectedRange, makeCurvedSizeMap, setAutoScaleColorRange, setColorPalette, setColorUnit, setCurvedSize, setDisplayUnit, setGreyPalette, setPolygonMode, setRange, setRangeForColor, setRangeForSelect, setSelectedRange, setSelectRealType, setUseRGBTypeForSelect, setVisADPalette
 
Methods inherited from class ucar.visad.display.DisplayableData
addAction, dataChange, destroy, getActive, getAnimationSet, getData, getLineWidth, getName, getPointSize, hasData, hasDataObject, isManipulable, isPickable, myAddConstantMaps, myAddDataReferences, myRemoveDataReferences, removeAction, setActive, setData, setDataReference, setDragAdapter, setLineWidth, setManipulable, setPickable, setPointMode, setPointSize, setUseFastRendering, setVisible, showme, toString
 
Methods inherited from class ucar.visad.display.Displayable
addConstantMap, addConstantMaps, addDataReferences, addPropertyChangeListener, addPropertyChangeListener, addRefsInvoked, addScalarMap, addScalarMaps, applyColorUnit, applyDisplayUnit, checkUnit, combineConstantMaps, destroyDisplayable, firePropertyChange, firePropertyChange, fireScalarMapSetChange, getColorUnit, getConstantMaps, getDestroyed, getDisplay, getDisplayMaster, getDisplayUnit, getPointMode, getScalarMap, getScalarMap, getScalarMap, getScalarMapSet, getUseFastRendering, getUseTimesInAnimation, getVisible, isActive, isUnitCompatible, isVisible, logException, removeConstantMap, removeDataReferences, removePropertyChangeListener, removePropertyChangeListener, removeScalarMap, replaceScalarMap, setColorPalette, setConstantPosition, setContourInfo, setDisplay, setDisplayActive, setDisplayInactive, setDisplayMaster, setOverrideAnimationSet, setOverrideAnimationSet, setParent, setRangeForColor, setScalarMapSet, setSelectedRange, setUseTimesInAnimation, toFront
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WindBarbDisplayable

public WindBarbDisplayable(String name,
                           RealTupleType rTT)
                    throws VisADException,
                           RemoteException
Constructs from a name for the Displayable and the type of the parameter.

Parameters:
name - The name for the displayable.
rTT - The VisAD RealTupleType of the parameter. May be null.
Throws:
VisADException - VisAD failure.
RemoteException - Java RMI failure.

WindBarbDisplayable

public WindBarbDisplayable(String name,
                           RealTupleType rTT,
                           boolean useSpeedForColor)
                    throws VisADException,
                           RemoteException
Constructs from a name for the Displayable and the type of the parameter.

Parameters:
name - The name for the displayable.
rTT - The VisAD RealTupleType of the parameter. May be null.
useSpeedForColor - _more_
Throws:
VisADException - VisAD failure.
RemoteException - Java RMI failure.
Method Detail

getDataRenderer

protected DataRenderer getDataRenderer()
Returns the DataRenderer associated with this instance.

Overrides:
getDataRenderer in class DisplayableData
Returns:
The DataRenderer associated with this instance.

setRGBRealType

public void setRGBRealType(RealType realType)
                    throws RemoteException,
                           VisADException
Sets the RealType of the RGB parameter. Override so that we set the units to be KNOTS since wind barbs are always in knots

Overrides:
setRGBRealType in class RGBDisplayable
Parameters:
realType - The RealType of the RGB parameter. May not be null.
Throws:
VisADException - VisAD failure.
RemoteException - Java RMI failure.

setFlowRange

public void setFlowRange(double min,
                         double max)
                  throws VisADException,
                         RemoteException
Set the range of the flow maps

Overrides:
setFlowRange in class FlowDisplayable
Parameters:
min - min value
max - max value
Throws:
VisADException - VisAD failure.
RemoteException - Java RMI failure.

get3DFlow

public boolean get3DFlow()
Check to see if this is 3D flow

Overrides:
get3DFlow in class FlowDisplayable
Returns:
false