Class WindVectorSymbol

All Implemented Interfaces:
Cloneable

public class WindVectorSymbol extends WindBarbSymbol
Class description
Version:
Enter version here..., Wed, Jun 8, '11
Author:
Enter your name here...
  • Constructor Details

    • WindVectorSymbol

      public WindVectorSymbol()
      Create a WindVectorSymbol
    • WindVectorSymbol

      public WindVectorSymbol(DisplayCanvas canvas, int x, int y)
      Create a wind vector symbol
      Parameters:
      canvas - the canvas
      x - the x position
      y - the y position
    • WindVectorSymbol

      public WindVectorSymbol(int x, int y, String uOrSpeedParam, String uOrSpeedDescr, String vOrDirParam, String vOrDirDescr)
      Construct a WindVectorSymbol to use on the canvas specified at the position specified. Use the parameter names and long names specified.
      Parameters:
      x - x position on the canvas
      y - y position on the canvas
      uOrSpeedParam - u or speed component of wind parameter name
      uOrSpeedDescr - u or speed component of wind parameter description
      vOrDirParam - v or direction component of wind parameter name
      vOrDirDescr - v or direction component of wind parameter descr
    • WindVectorSymbol

      public WindVectorSymbol(DisplayCanvas canvas, int x, int y, String uOrSpeedParam, String uOrSpeedDescr, String vOrDirParam, String vOrDirDescr)
      Construct a WindVectorSymbol to use on the canvas specified at the position specified. Use the parameter names and long names specified.
      Parameters:
      canvas - canvas to draw on.
      x - x position on the canvas
      y - y position on the canvas
      uOrSpeedParam - u or speed component of wind parameter name
      uOrSpeedDescr - u or speed component of wind parameter description
      vOrDirParam - v or direction component of wind parameter name
      vOrDirDescr - v or direction component of wind parameter descr
  • Method Details

    • makeDrawer

      protected WindBarbSymbol.WindDrawer makeDrawer()
      Make the drawer for this symbol
      Overrides:
      makeDrawer in class WindBarbSymbol
      Returns:
      the drawer
    • makeVector

      public VisADGeometryArray[] makeVector(float[][] flow_values, float flowScale, float[][] spatial_values, byte[][] color_values, boolean[][] range_select) throws VisADException
      make the vector. Adapted from visad.ShadowType.makeFlow.
      Parameters:
      flow_values - the flow values (u,v)
      flowScale - the scale
      spatial_values - the spatial locations (x,y)
      color_values - color (not handled here)
      range_select - missing flags
      Returns:
      the drawn vector
      Throws:
      VisADException - problem drawing the vector