TLcdEarthSparseIcon
can display sparse icons for GRIB data decoded by the NetCDF decoder.@Deprecated public class TLcdGRIBSparseIcon extends ALcdGRIBIcon
ILcdGRIBIcon
delegates its painting to another
ILcdGRIBIcon
, in a density that is based on the strength
of a vector. When the strength is high in a region, many icons are
drawn. When the strength is low, only a few icons are drawn.
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.
The strength is assumed to range between the given minStrength
and maxStrength
. Modifying these values allows to play with
the density of the icons.
Modifier and Type | Field and Description |
---|---|
static int |
DIRECTION_STRENGTH
Deprecated.
The direction and strength of the vector are specified.
|
static int |
U_V
Deprecated.
The U- and V-component of the vector are specified.
|
Constructor and Description |
---|
TLcdGRIBSparseIcon(ILcdGRIBIcon aGRIBIcon,
int aType,
int aDeltaX,
int aDeltaY,
double aMaxStrength)
Deprecated.
Creates a new TLcdGRIBSparseIcon of the given type, for strengths with a given
maximum.
|
TLcdGRIBSparseIcon(ILcdGRIBIcon aGRIBIcon,
int aType,
int aDeltaX,
int aDeltaY,
double aMinStrength,
double aMaxStrength)
Deprecated.
Creates a new TLcdGRIBSparseIcon of the given type, for strengths that range
over a given interval.
|
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.
|
void |
paintGRIBIcon(Graphics aGraphics,
int aX,
int aY,
double[] aValues)
Deprecated.
Paint the icon at the specified location for the given multi-dimensional value.
|
public static final int U_V
public static final int DIRECTION_STRENGTH
public TLcdGRIBSparseIcon(ILcdGRIBIcon aGRIBIcon, int aType, int aDeltaX, int aDeltaY, double aMaxStrength)
aGRIBIcon
- The icon to be painted.aType
- U_V
or DIRECTION_STRENGTH
.aDeltaX
- the horizontal grid spacing at which this icon is painted.aDeltaY
- the vertical grid spacing at which this icon is painted.aMaxStrength
- the expected maximum strength.public TLcdGRIBSparseIcon(ILcdGRIBIcon aGRIBIcon, int aType, int aDeltaX, int aDeltaY, double aMinStrength, double aMaxStrength)
aGRIBIcon
- The icon to be painted.aType
- U_V
or DIRECTION_STRENGTH
.aDeltaX
- the horizontal grid spacing at which this icon is painted.aDeltaY
- the vertical grid spacing at which this icon is painted.aMinStrength
- the minimum strength.aMaxStrength
- the expected maximum strength.public void paintGRIBIcon(Graphics aGraphics, int aX, int aY, double[] aValues)
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.