Class TLcdGRIBWindIcon

java.lang.Object
com.luciad.format.grib.gxy.ALcdGRIBIcon
com.luciad.format.grib.gxy.TLcdGRIBWindIcon
All Implemented Interfaces:
ILcdGRIBIcon, ILcdOriented

@Deprecated public class TLcdGRIBWindIcon extends ALcdGRIBIcon implements ILcdOriented
Deprecated.
The NetCDF decoder should be used to decode GRIB data. TLcdEarthWindIcon can display wind barbs for GRIB data decoded by the NetCDF decoder.
This 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).

Since:
6.5
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Deprecated.
    The direction and strength of the wind are specified.
    static final int
    Deprecated.
    The U-component and V-component of the wind are specified.
  • Constructor Summary

    Constructors
    Constructor
    Description
    TLcdGRIBWindIcon(int aType)
    Deprecated.
    Creates a new TLcdGRIBWindIcon of the given type.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    anchorPointSFCT(double[] aValues, Point aPointSFCT)
    Deprecated.
    Returns the anchor point of this icon.
    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
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • U_V

      public static final int U_V
      Deprecated.
      The U-component and V-component of the wind are specified.
      See Also:
    • DIRECTION_STRENGTH

      public static final int DIRECTION_STRENGTH
      Deprecated.
      The direction and strength of the wind are specified.
      See Also:
  • Constructor Details

    • TLcdGRIBWindIcon

      public TLcdGRIBWindIcon(int aType)
      Deprecated.
      Creates a new TLcdGRIBWindIcon of the given type.
      Parameters:
      aType - U_V or DIRECTION_STRENGTH.
  • Method Details

    • getColor

      public Color getColor()
      Deprecated.
      Returns the color of the wind barbs.
      Returns:
      The color of the wind barbs.
      See Also:
    • setColor

      public void setColor(Color aColor)
      Deprecated.
      Sets the color of the wind barbs.
      Parameters:
      aColor - The color of the wind barbs.
      See Also:
    • getOrientation

      public double getOrientation()
      Deprecated.
      Returns 0. The orientation of the wind barbs is computed based on the wind values, when they are painted
      Specified by:
      getOrientation in interface ILcdOriented
      Returns:
      0;.
    • paintGRIBIcon

      public void paintGRIBIcon(Graphics aGraphics, int aX, int aY, double[] aValues)
      Deprecated.
      Paint the icon at the specified location for the given multi-dimensional value.
      Specified by:
      paintGRIBIcon in interface ILcdGRIBIcon
      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 class ALcdGRIBIcon
      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 class ALcdGRIBIcon
      Parameters:
      aValues - the values
      Returns:
      the height of the icon.
    • anchorPointSFCT

      public void anchorPointSFCT(double[] aValues, Point aPointSFCT)
      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 class ALcdGRIBIcon
      Parameters:
      aValues - the values
      aPointSFCT - the point that has to be moved to the location of the anchor point of this icon.