Package com.luciad.format.grib.gxy
Class TLcdGRIBSparseIcon
java.lang.Object
com.luciad.format.grib.gxy.ALcdGRIBIcon
com.luciad.format.grib.gxy.TLcdGRIBSparseIcon
- All Implemented Interfaces:
ILcdGRIBIcon
Deprecated.
This
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.
- Since:
- 6.5
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Deprecated.The direction and strength of the vector are specified.static final int
Deprecated.The U- and V-component of the vector are specified. -
Constructor Summary
ConstructorsConstructorDescriptionTLcdGRIBSparseIcon
(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. -
Method Summary
Modifier and TypeMethodDescriptionvoid
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.
-
Field Details
-
U_V
public static final int U_VDeprecated.The U- and V-component of the vector are specified.- See Also:
-
DIRECTION_STRENGTH
public static final int DIRECTION_STRENGTHDeprecated.The direction and strength of the vector are specified.- See Also:
-
-
Constructor Details
-
TLcdGRIBSparseIcon
public 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.- Parameters:
aGRIBIcon
- The icon to be painted.aType
-U_V
orDIRECTION_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.
-
TLcdGRIBSparseIcon
public 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.- Parameters:
aGRIBIcon
- The icon to be painted.aType
-U_V
orDIRECTION_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.
-
-
Method Details
-
paintGRIBIcon
Deprecated.Paint the icon at the specified location for the given multi-dimensional value.- Parameters:
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.
-
getIconWidth
public int getIconWidth(double[] aValues) Deprecated.Description copied from class:ALcdGRIBIcon
Returns the width of the icon.- Specified by:
getIconWidth
in classALcdGRIBIcon
- Parameters:
aValues
- the values- Returns:
- the width of the icon.
-
getIconHeight
public int getIconHeight(double[] aValues) Deprecated.Description copied from class:ALcdGRIBIcon
Returns the height of the icon.- Specified by:
getIconHeight
in classALcdGRIBIcon
- Parameters:
aValues
- the values- Returns:
- the height of the icon.
-
anchorPointSFCT
Deprecated.Description copied from class:ALcdGRIBIcon
Returns the anchor point of this icon. The x-coordinate of the anchor point typically lies between 0 and getWidth(). The y-coordinate typically lies between 0 and getHeight().- Specified by:
anchorPointSFCT
in classALcdGRIBIcon
- Parameters:
aValues
- the valuesaPointSFCT
- the point that has to be moved to the location of the anchor point of this icon.
-
TLcdEarthSparseIcon
can display sparse icons for GRIB data decoded by the NetCDF decoder.