Package noaa.coastwatch.render
Class ColorArrowSymbol
java.lang.Object
jahuwaldt.plot.PlotSymbol
noaa.coastwatch.render.PointFeatureSymbol
noaa.coastwatch.render.DirectionSymbol
noaa.coastwatch.render.ArrowSymbol
noaa.coastwatch.render.ColorArrowSymbol
- All Implemented Interfaces:
Serializable,Cloneable,ColorEnhanced
A
ColorArrowSymbol is similar to a normal arrow but it
has the additional feature that arrows are colored according to a
color enhancement scheme based on the vector magnitude.- Since:
- 3.2.0
- Author:
- Peter Hollemans
- See Also:
-
Field Summary
Fields inherited from class noaa.coastwatch.render.ArrowSymbol
componentAtts, isMagDirFields inherited from class noaa.coastwatch.render.PointFeatureSymbol
feature -
Constructor Summary
ConstructorsConstructorDescriptionColorArrowSymbol(int uComponentAtt, int vComponentAtt, Palette pal, EnhancementFunction func) Creates a new color arrow symbol based on U and V components.ColorArrowSymbol(int magnitudeAtt, int directionAtt, EarthTransform2D trans, Palette pal, EnhancementFunction func) Creates a new color arrow symbol based on magnitude and direction components. -
Method Summary
Modifier and TypeMethodDescriptionvoidGets the enhancement function.Gets the missing value color.Gets the enhancement color palette.voidSets the enhancement function.voidsetMissingColor(Color color) Sets the missing value color.voidsetPalette(Palette pal) Sets the enhancement color palette.Methods inherited from class noaa.coastwatch.render.ArrowSymbol
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
-
ColorArrowSymbol
public ColorArrowSymbol(int uComponentAtt, int vComponentAtt, Palette pal, EnhancementFunction func) Creates a new color arrow symbol based on U and V components.- Parameters:
uComponentAtt- the feature attribute for U component.vComponentAtt- the feature attribute for V component.pal- the color palette for color enhancement.func- the enhancement function.
-
ColorArrowSymbol
public ColorArrowSymbol(int magnitudeAtt, int directionAtt, EarthTransform2D trans, Palette pal, EnhancementFunction func) Creates a new color arrow symbol based on magnitude and direction components.- Parameters:
magnitudeAtt- the feature attribute for vector magnitude.directionAtt- the feature attribute for vector direction.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
-
setPalette
Sets the enhancement color palette.- Specified by:
setPalettein interfaceColorEnhanced
-
getFunction
Gets the enhancement function.- Specified by:
getFunctionin interfaceColorEnhanced
-
setFunction
Sets the enhancement function.- Specified by:
setFunctionin interfaceColorEnhanced
-
getMissingColor
Gets the missing value color.- Specified by:
getMissingColorin interfaceColorEnhanced
-
setMissingColor
Sets the missing value color.- Specified by:
setMissingColorin interfaceColorEnhanced
-
draw
- Overrides:
drawin classDirectionSymbol
-