Package com.luciad.format.grib.gxy
Class TLcdGRIBArrowIcon
java.lang.Object
com.luciad.format.grib.gxy.ALcdGRIBIcon
com.luciad.format.grib.gxy.TLcdGRIBArrowIcon
- All Implemented Interfaces:
ILcdGRIBIcon,ILcdOriented
Deprecated.
This
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.
- Since:
- 6.5
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDeprecated.Only the direction of the vector is specified.static final intDeprecated.The direction and strength of the vector are specified.static final intDeprecated.The U-component and V-component of the vector are specified. -
Constructor Summary
ConstructorsConstructorDescriptionTLcdGRIBArrowIcon(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. -
Method Summary
Modifier and TypeMethodDescriptionvoidanchorPointSFCT(double[] aValues, Point aPointSFCT) Deprecated.Returns the anchor point of this icon.intgetIconHeight(double[] aValues) Deprecated.Returns the height of the icon.intgetIconWidth(double[] aValues) Deprecated.Returns the width of the icon.Deprecated.Returns the arrow color corresponding to the maximum strength.doubleDeprecated.Returns the expected maximum strength for the vector.Deprecated.Returns the arrow color corresponding to the minimum strength.doubleDeprecated.Returns the expected minimum strength for the vector.doubleDeprecated.Returns 0.booleanDeprecated.Returns whether the vector angle indicates the incoming direction.voidpaintGRIBIcon(Graphics aGraphics, int aX, int aY, double[] aValues) Deprecated.Paint the icon at the specified location for the given multi-dimensional value.voidsetAngleInverted(boolean aAngleInverted) Deprecated.Specifies whether the vector angle indicates the incoming direction.voidsetMaxColor(Color aMaxColor) Deprecated.Sets the arrow color corresponding to the maximum strength.voidsetMaxStrength(double aMaxStrength) Deprecated.Sets the expected maximum strength of the vector, for which the arrow are painted in the maximum colorvoidsetMinColor(Color aMinColor) Deprecated.Sets the arrow color corresponding to the minimum strength.voidsetMinStrength(double aMinStrength) Deprecated.Sets the expected minimum strength of the vector, for which the arrow is painted in the minimum color.
-
Field Details
-
U_V
public static final int U_VDeprecated.The U-component 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:
-
DIRECTION
public static final int DIRECTIONDeprecated.Only the direction of the vector is specified. All arrows are painted in the color for the maximum strength.- See Also:
-
-
Constructor Details
-
TLcdGRIBArrowIcon
public TLcdGRIBArrowIcon(int aType) Deprecated.Creates a new TLcdGRIBArrowIcon of the given type.- Parameters:
aType-U_V,DIRECTION_STRENGTH, orDIRECTION.
-
TLcdGRIBArrowIcon
public TLcdGRIBArrowIcon(int aType, double aMaxStrength) Deprecated.Creates a new TLcdGRIBArrowIcon of the given type and with the given maximum strength.- Parameters:
aType-U_V,DIRECTION_STRENGTH, orDIRECTION.aMaxStrength- the expected maximum strength.
-
TLcdGRIBArrowIcon
public TLcdGRIBArrowIcon(int aType, double aMinStrength, double aMaxStrength) Deprecated.Creates a new TLcdGRIBArrowIcon of the given type and with the given interval of strengths.- Parameters:
aType-U_V,DIRECTION_STRENGTH, orDIRECTION.aMinStrength- the expected minimum strength.aMaxStrength- the expected maximum strength.
-
-
Method Details
-
isAngleInverted
public boolean isAngleInverted()Deprecated.Returns whether the vector angle indicates the incoming direction.- Returns:
trueif the vector angle indicates the incoming direction,falseif it indicates the outgoing direction.- See Also:
-
setAngleInverted
public void setAngleInverted(boolean aAngleInverted) Deprecated.Specifies whether the vector angle indicates the incoming direction. If false, the angle indicates the outgoing direction.- Parameters:
aAngleInverted-trueif the vector angle indicates the incoming direction,falseif it indicates the outgoing direction- See Also:
-
getMaxStrength
public double getMaxStrength()Deprecated.Returns the expected maximum strength for the vector.- Returns:
- The expected maximum strength for the vector.
- See Also:
-
setMaxStrength
public void setMaxStrength(double aMaxStrength) Deprecated.Sets the expected maximum strength of the vector, for which the arrow are painted in the maximum color- Parameters:
aMaxStrength- The expected maximum strength of the vector.- See Also:
-
getMinStrength
public double getMinStrength()Deprecated.Returns the expected minimum strength for the vector.- Returns:
- The expected minimum strength for the vector.
- See Also:
-
setMinStrength
public void setMinStrength(double aMinStrength) Deprecated.Sets the expected minimum strength of the vector, for which the arrow is painted in the minimum color.- Parameters:
aMinStrength- The expected minimum strength of the vector.- See Also:
-
getMinColor
Deprecated.Returns the arrow color corresponding to the minimum strength.- Returns:
- The arrow color corresponding to the minimum strength.
- See Also:
-
setMinColor
Deprecated.Sets the arrow color corresponding to the minimum strength.- Parameters:
aMinColor- The arrow color corresponding to the minimum strength.- See Also:
-
getMaxColor
Deprecated.Returns the arrow color corresponding to the maximum strength.- Returns:
- The arrow color corresponding to the maximum strength.
- See Also:
-
setMaxColor
Deprecated.Sets the arrow color corresponding to the maximum strength.- Parameters:
aMaxColor- The arrow color corresponding to the maximum strength.- See Also:
-
getOrientation
public double getOrientation()Deprecated.Returns 0. The orientation of the arrows is computed based on the values, when they are painted.- Specified by:
getOrientationin interfaceILcdOriented- Returns:
- 0.
-
paintGRIBIcon
Deprecated.Paint the icon at the specified location for the given multi-dimensional value.- Specified by:
paintGRIBIconin interfaceILcdGRIBIcon- Parameters:
aGraphics- the Graphics on which the icon is painted.aX- the x ordinate at which the icon is painted.aXis the first coordinate of the top left corner point of the icon.aY- the y ordinate at which the icon is painted.aYis 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:ALcdGRIBIconReturns the width of the icon.- Specified by:
getIconWidthin classALcdGRIBIcon- Parameters:
aValues- the values- Returns:
- the width of the icon.
-
getIconHeight
public int getIconHeight(double[] aValues) Deprecated.Description copied from class:ALcdGRIBIconReturns the height of the icon.- Specified by:
getIconHeightin classALcdGRIBIcon- Parameters:
aValues- the values- Returns:
- the height of the icon.
-
anchorPointSFCT
Deprecated.Description copied from class:ALcdGRIBIconReturns 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:
anchorPointSFCTin classALcdGRIBIcon- Parameters:
aValues- the valuesaPointSFCT- the point that has to be moved to the location of the anchor point of this icon.
-
TLcdEarthArrowIconcan display arrow icons for GRIB data decoded by the NetCDF decoder.