TLcdEarthWindIcon
can display wind barbs for GRIB data decoded by the NetCDF decoder.@Deprecated public class TLcdGRIBWindIcon extends ALcdGRIBIcon implements ILcdOriented
ILcdGRIBIcon
displays wind barbs, based on the GRIB
wind data.
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. Note that
the length of the (u,v) vector is interpreted as meters per second.
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 (expressed in meters per second).
Modifier and Type | Field and Description |
---|---|
static int |
DIRECTION_STRENGTH
Deprecated.
The direction and strength of the wind are specified.
|
static int |
U_V
Deprecated.
The U-component and V-component of the wind are specified.
|
Constructor and Description |
---|
TLcdGRIBWindIcon(int aType)
Deprecated.
Creates a new TLcdGRIBWindIcon of the given type.
|
Modifier and Type | Method and Description |
---|---|
void |
anchorPointSFCT(double[] aValues,
Point aPointSFCT)
Deprecated.
Returns the anchor point of this icon.
|
Color |
getColor()
Deprecated.
Returns the color of the wind barbs.
|
int |
getIconHeight(double[] aValues)
Deprecated.
Returns the height of the icon.
|
int |
getIconWidth(double[] aValues)
Deprecated.
Returns the width of the icon.
|
double |
getOrientation()
Deprecated.
Returns 0.
|
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 |
setColor(Color aColor)
Deprecated.
Sets the color of the wind barbs.
|
public static final int U_V
public static final int DIRECTION_STRENGTH
public TLcdGRIBWindIcon(int aType)
aType
- U_V
or DIRECTION_STRENGTH
.public Color getColor()
setColor(java.awt.Color)
public void setColor(Color aColor)
aColor
- The color of the wind barbs.getColor()
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.