TLcdEarthArrowIcon
can display arrow icons for GRIB data decoded by the NetCDF decoder.@Deprecated public class TLcdGRIBArrowIcon extends ALcdGRIBIcon implements ILcdOriented
ILcdGRIBIcon
displays arrows, based on the
values of the components (u-v, direction-value, or direction only)
of the vector at that location.
When the type is U_V
, the first value in the array is the
U-component and the second value is the V-component of the vector.
When the type is DIRECTION_STRENGTH
, the first value in the
array is the direction (expressed in degrees) and the second value is the
strength of the vector.
When the type is DIRECTION
, the first value in the array is
the direction of the vector (expressed in degrees).
The color of the arrow depends on the strength of the vector.
It ranges between minColor
and maxColor
, over
the interval between minStrength
and maxStrength
.
Modifier and Type | Field and Description |
---|---|
static int |
DIRECTION
Deprecated.
Only the direction of the vector is specified.
|
static int |
DIRECTION_STRENGTH
Deprecated.
The direction and strength of the vector are specified.
|
static int |
U_V
Deprecated.
The U-component and V-component of the vector are specified.
|
Constructor and Description |
---|
TLcdGRIBArrowIcon(int aType)
Deprecated.
Creates a new TLcdGRIBArrowIcon of the given type.
|
TLcdGRIBArrowIcon(int aType,
double aMaxStrength)
Deprecated.
Creates a new TLcdGRIBArrowIcon of the given type and with the given
maximum strength.
|
TLcdGRIBArrowIcon(int aType,
double aMinStrength,
double aMaxStrength)
Deprecated.
Creates a new TLcdGRIBArrowIcon of the given type and with the given
interval of strengths.
|
Modifier and Type | Method and Description |
---|---|
void |
anchorPointSFCT(double[] aValues,
Point aPointSFCT)
Deprecated.
Returns the anchor point of this icon.
|
int |
getIconHeight(double[] aValues)
Deprecated.
Returns the height of the icon.
|
int |
getIconWidth(double[] aValues)
Deprecated.
Returns the width of the icon.
|
Color |
getMaxColor()
Deprecated.
Returns the arrow color corresponding to the maximum strength.
|
double |
getMaxStrength()
Deprecated.
Returns the expected maximum strength for the vector.
|
Color |
getMinColor()
Deprecated.
Returns the arrow color corresponding to the minimum strength.
|
double |
getMinStrength()
Deprecated.
Returns the expected minimum strength for the vector.
|
double |
getOrientation()
Deprecated.
Returns 0.
|
boolean |
isAngleInverted()
Deprecated.
Returns whether the vector angle indicates the incoming direction.
|
void |
paintGRIBIcon(Graphics aGraphics,
int aX,
int aY,
double[] aValues)
Deprecated.
Paint the icon at the specified location for the given multi-dimensional value.
|
void |
setAngleInverted(boolean aAngleInverted)
Deprecated.
Specifies whether the vector angle indicates the incoming direction.
|
void |
setMaxColor(Color aMaxColor)
Deprecated.
Sets the arrow color corresponding to the maximum strength.
|
void |
setMaxStrength(double aMaxStrength)
Deprecated.
Sets the expected maximum strength of the vector, for which the arrow are
painted in the maximum color
|
void |
setMinColor(Color aMinColor)
Deprecated.
Sets the arrow color corresponding to the minimum strength.
|
void |
setMinStrength(double aMinStrength)
Deprecated.
Sets the expected minimum strength of the vector, for which the arrow
is painted in the minimum color.
|
public static final int U_V
public static final int DIRECTION_STRENGTH
public static final int DIRECTION
public TLcdGRIBArrowIcon(int aType)
aType
- U_V
, DIRECTION_STRENGTH
, or
DIRECTION
.public TLcdGRIBArrowIcon(int aType, double aMaxStrength)
aType
- U_V
, DIRECTION_STRENGTH
, or
DIRECTION
.aMaxStrength
- the expected maximum strength.public TLcdGRIBArrowIcon(int aType, double aMinStrength, double aMaxStrength)
aType
- U_V
, DIRECTION_STRENGTH
, or
DIRECTION
.aMinStrength
- the expected minimum strength.aMaxStrength
- the expected maximum strength.public boolean isAngleInverted()
true
if the vector angle indicates the incoming direction,
false
if it indicates the outgoing direction.setAngleInverted(boolean)
public void setAngleInverted(boolean aAngleInverted)
aAngleInverted
- true
if the vector angle indicates the incoming direction,
false
if it indicates the outgoing directionisAngleInverted()
public double getMaxStrength()
setMaxStrength(double)
public void setMaxStrength(double aMaxStrength)
aMaxStrength
- The expected maximum strength of the vector.getMaxStrength()
public double getMinStrength()
setMinStrength(double)
public void setMinStrength(double aMinStrength)
aMinStrength
- The expected minimum strength of the vector.getMinStrength()
public Color getMinColor()
setMinColor(java.awt.Color)
public void setMinColor(Color aMinColor)
aMinColor
- The arrow color corresponding to the minimum strength.getMinColor()
public Color getMaxColor()
setMaxColor(java.awt.Color)
public void setMaxColor(Color aMaxColor)
aMaxColor
- The arrow color corresponding to the maximum strength.getMaxColor()
public double getOrientation()
getOrientation
in interface ILcdOriented
public void paintGRIBIcon(Graphics aGraphics, int aX, int aY, double[] aValues)
paintGRIBIcon
in interface ILcdGRIBIcon
aGraphics
- the Graphics on which the icon is painted.aX
- the x ordinate at which the icon is painted. aX
is the first
coordinate of the top left corner point of the icon.aY
- the y ordinate at which the icon is painted. aY
is the first
coordinate of the top left corner point of the icon.aValues
- the multi-dimensional value.public int getIconWidth(double[] aValues)
ALcdGRIBIcon
getIconWidth
in class ALcdGRIBIcon
aValues
- the valuespublic int getIconHeight(double[] aValues)
ALcdGRIBIcon
getIconHeight
in class ALcdGRIBIcon
aValues
- the valuespublic void anchorPointSFCT(double[] aValues, Point aPointSFCT)
ALcdGRIBIcon
anchorPointSFCT
in class ALcdGRIBIcon
aValues
- the valuesaPointSFCT
- the point that has to be moved to the location of the anchor point
of this icon.