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_SECONDFields 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 TypeMethodDescriptionvoidGets the enhancement function.Gets the missing value color.Gets the enhancement color palette.voidSets the enhancement function.voidsetMissingColor(Color missingColor) Sets the missing value color.voidsetPalette(Palette pal) Sets the enhancement color palette.Methods inherited from class noaa.coastwatch.render.WindBarbSymbol
drawVector, getDirection, getMagnitude, mainMethods inherited from class noaa.coastwatch.render.DirectionSymbol
convertAngle, getDirectionIsFrom, setDirectionIsFromMethods inherited from class noaa.coastwatch.render.PointFeatureSymbol
setFeatureMethods 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_KNOTSorSPEED_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:
getPalettein interfaceColorEnhanced
-
getFunction
Gets the enhancement function.- Specified by:
getFunctionin interfaceColorEnhanced
-
setPalette
Sets the enhancement color palette.- Specified by:
setPalettein interfaceColorEnhanced
-
setMissingColor
Sets the missing value color.- Specified by:
setMissingColorin interfaceColorEnhanced
-
getMissingColor
Gets the missing value color.- Specified by:
getMissingColorin interfaceColorEnhanced
-
setFunction
Sets the enhancement function.- Specified by:
setFunctionin interfaceColorEnhanced
-
draw
- Overrides:
drawin classDirectionSymbol
-