Package JavaLineArray

Class CELineArray

java.lang.Object
JavaLineArray.CELineArray

public final class CELineArray extends Object
A class for the interface between the points calculation CELineArray and the tactical renderer.
Author:
Michael Deutch
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static int
    CGetChannel2Double(double[] lpsaUpperVBPoints, double[] lpsaLowerVBPoints, double[] resultVBPoints, int vblUpperCounter, int vblLowerCounter, int vbiDrawThis, int vblChannelWidth, int usePtr, ArrayList<Shape2> shapes, int rev)
    Client interface function, called by tactical renderer clsChannelUtility
    static int
    CGetLineCountDouble(double[] plArrayOfLongs, int lElements, int lineType, int ChannelWidth, int rev)
    public function to return the line count required for all of the symbols
    static int
    CGetLinetypeFromString(String strLine, int rev)
    Return the line type as a hierarchy from the 15 character Mil-Standard-2525 symbol code
    static int
    CIsChannel(int lineType)
    Return true is the line type is a channel type
    static String
     
    static void
     

    Methods inherited from class java.lang.Object

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

    • CELineArray

      public CELineArray()
  • Method Details

    • CGetChannel2Double

      public static int CGetChannel2Double(double[] lpsaUpperVBPoints, double[] lpsaLowerVBPoints, double[] resultVBPoints, int vblUpperCounter, int vblLowerCounter, int vbiDrawThis, int vblChannelWidth, int usePtr, ArrayList<Shape2> shapes, int rev) throws Exception
      Client interface function, called by tactical renderer clsChannelUtility
      Parameters:
      lpsaUpperVBPoints - the client points as an array of 2-tuples: x pixels, y pixels
      lpsaLowerVBPoints - generally the same as the upper points
      resultVBPoints - calculated points to return as 3 tuples: x,y,linestyle
      vblUpperCounter - the number of client points
      vblLowerCounter - the number of client points
      vbiDrawThis - the line type as a hierarchy
      vblChannelWidth - the channel width in pixels
      usePtr - currently being used as the distance from the this to the back of the arrowhead
      shapes - ShapeInfo object to return which will contain the GeneralPath for the line
      Returns:
      the point count for the return array
      Throws:
      Exception
    • CGetLineCountDouble

      public static int CGetLineCountDouble(double[] plArrayOfLongs, int lElements, int lineType, int ChannelWidth, int rev)
      public function to return the line count required for all of the symbols
      Parameters:
      plArrayOfLongs - the client points as an array of POINT2 in pixels.
      lElements - the number of client points.
      lineType - the line type
      rev - the Mil-Standard-2525 revision
      ChannelWdith - the chanel width in pixels
      Returns:
      the number of points which will be required for the symbol.
    • CGetLinetypeFromString

      public static int CGetLinetypeFromString(String strLine, int rev)
      Return the line type as a hierarchy from the 15 character Mil-Standard-2525 symbol code
      Parameters:
      strLine -
      rev - the Mil-Standard-2525 revision
      Returns:
    • CIsChannel

      public static int CIsChannel(int lineType)
      Return true is the line type is a channel type
      Parameters:
      lineType - line type
      Returns:
    • setClient

      public static void setClient(String value)
    • getClient

      public static String getClient()