Package noaa.coastwatch.render
Class ColorWindBarbSymbol
java.lang.Object
jahuwaldt.plot.PlotSymbol
noaa.coastwatch.render.PointFeatureSymbol
noaa.coastwatch.render.DirectionSymbol
noaa.coastwatch.render.WindBarbSymbol
noaa.coastwatch.render.ColorWindBarbSymbol
- All Implemented Interfaces:
Serializable
,Cloneable
,ColorEnhanced
A
ColorWindBarbSymbol
is similar to a normal wind
barb but it has the additional feature that barbs are colored
according to a color enhancement scheme based on the wind speed.- Since:
- 3.2.0
- Author:
- Peter Hollemans
- See Also:
-
Field Summary
Fields inherited from class noaa.coastwatch.render.WindBarbSymbol
SPEED_KNOTS, SPEED_METERS_PER_SECOND
Fields inherited from class noaa.coastwatch.render.PointFeatureSymbol
feature
-
Constructor Summary
ConstructorsConstructorDescriptionColorWindBarbSymbol
(int speedAtt, int directionAtt, int speedUnits, EarthTransform2D trans, Palette pal, EnhancementFunction func) Creates a new color wind barb symbol. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Gets the enhancement function.Gets the missing value color.Gets the enhancement color palette.void
Sets the enhancement function.void
setMissingColor
(Color missingColor) Sets the missing value color.void
setPalette
(Palette pal) Sets the enhancement color palette.Methods inherited from class noaa.coastwatch.render.WindBarbSymbol
drawVector, getDirection, getMagnitude, main
Methods inherited from class noaa.coastwatch.render.DirectionSymbol
convertAngle, getDirectionIsFrom, setDirectionIsFrom
Methods inherited from class noaa.coastwatch.render.PointFeatureSymbol
setFeature
Methods inherited from class jahuwaldt.plot.PlotSymbol
clone, getBorderColor, getFillColor, getSize, setBorderColor, setFillColor, setSize
-
Constructor Details
-
ColorWindBarbSymbol
public ColorWindBarbSymbol(int speedAtt, int directionAtt, int speedUnits, EarthTransform2D trans, Palette pal, EnhancementFunction func) Creates a new color wind barb symbol.- Parameters:
speedAtt
- the feature attribute for wind speed.directionAtt
- the feature attribute for wind direction.speedUnits
- the units of speed, eitherSPEED_KNOTS
orSPEED_METERS_PER_SECOND
.trans
- the earth transform used for converting directions.pal
- the color palette for color enhancement.func
- the enhancement function.
-
-
Method Details
-
getPalette
Gets the enhancement color palette.- Specified by:
getPalette
in interfaceColorEnhanced
-
getFunction
Gets the enhancement function.- Specified by:
getFunction
in interfaceColorEnhanced
-
setPalette
Sets the enhancement color palette.- Specified by:
setPalette
in interfaceColorEnhanced
-
setMissingColor
Sets the missing value color.- Specified by:
setMissingColor
in interfaceColorEnhanced
-
getMissingColor
Gets the missing value color.- Specified by:
getMissingColor
in interfaceColorEnhanced
-
setFunction
Sets the enhancement function.- Specified by:
setFunction
in interfaceColorEnhanced
-
draw
- Overrides:
draw
in classDirectionSymbol
-