public class ColorArrowSymbol extends ArrowSymbol implements ColorEnhanced
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.componentAtts, isMagDir
feature
Constructor and Description |
---|
ColorArrowSymbol(int magnitudeAtt,
int directionAtt,
EarthTransform2D trans,
Palette pal,
EnhancementFunction func)
Creates a new color arrow symbol based on magnitude and direction
components.
|
ColorArrowSymbol(int uComponentAtt,
int vComponentAtt,
Palette pal,
EnhancementFunction func)
Creates a new color arrow symbol based on U and V components.
|
Modifier and Type | Method and Description |
---|---|
void |
draw(java.awt.Graphics gc,
int x,
int y) |
EnhancementFunction |
getFunction()
Gets the enhancement function.
|
java.awt.Color |
getMissingColor()
Gets the missing value color.
|
Palette |
getPalette()
Gets the enhancement color palette.
|
void |
setFunction(EnhancementFunction func)
Sets the enhancement function.
|
void |
setMissingColor(java.awt.Color color)
Sets the missing value color.
|
void |
setPalette(Palette pal)
Sets the enhancement color palette.
|
drawVector, getDirection, getMagnitude, main
convertAngle, getDirectionIsFrom, setDirectionIsFrom
setFeature
public ColorArrowSymbol(int uComponentAtt, int vComponentAtt, Palette pal, EnhancementFunction func)
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.public ColorArrowSymbol(int magnitudeAtt, int directionAtt, EarthTransform2D trans, Palette pal, EnhancementFunction func)
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.public Palette getPalette()
getPalette
in interface ColorEnhanced
public void setPalette(Palette pal)
setPalette
in interface ColorEnhanced
public EnhancementFunction getFunction()
getFunction
in interface ColorEnhanced
public void setFunction(EnhancementFunction func)
setFunction
in interface ColorEnhanced
public java.awt.Color getMissingColor()
getMissingColor
in interface ColorEnhanced
public void setMissingColor(java.awt.Color color)
setMissingColor
in interface ColorEnhanced
public void draw(java.awt.Graphics gc, int x, int y)
draw
in class DirectionSymbol