Class Channels

java.lang.Object
armyc2.c5isr.JavaLineArray.Channels

public final class Channels extends Object
CELineArray Channels class calculates the channel points
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected static POINT2[]
    CoordIL2Double(int nPrinter, POINT2[] pLinePoints, int nUpperLower, int vblCounter, int linetype, int vblChannelWidth)
     
    static int
    GetChannel1Double(TGLight tg, double[] lpsaUpperVBPoints, double[] lpsaLowerVBPoints, double[] resultVBPoints, int vblUpperCounter, int vblLowerCounter, int vblChannelWidth, int useptr, ArrayList<Shape2> shapes)
    Calculates the channel points
    protected static POINT2[]
    GetChannelArray2Double(int nPrinter, POINT2[] pLinePoints, int nUpperLower, int vblCounter, int vbiDrawThis, int vblChannelWidth)
    Calculates a channel line and is called once each time for lower and upper channel lines.
    static boolean
     
    protected static int
    GetTripleCountDouble(POINT2[] pLinePoints, int vblCounter, int linetype)
    Calculates the point count for the concertina wire and fence channels.
    static void
     

    Methods inherited from class java.lang.Object

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

  • Method Details

    • setClient

      public static void setClient(String value)
    • getShiftLines

      public static boolean getShiftLines()
    • GetTripleCountDouble

      protected static int GetTripleCountDouble(POINT2[] pLinePoints, int vblCounter, int linetype)
      Calculates the point count for the concertina wire and fence channels.
      Parameters:
      pLinePoints - client points
      vblCounter - the client point count
      linetype - the line type
      Returns:
      the number of points required to render the symbol
    • CoordIL2Double

      protected static POINT2[] CoordIL2Double(int nPrinter, POINT2[] pLinePoints, int nUpperLower, int vblCounter, int linetype, int vblChannelWidth)
    • GetChannelArray2Double

      protected static POINT2[] GetChannelArray2Double(int nPrinter, POINT2[] pLinePoints, int nUpperLower, int vblCounter, int vbiDrawThis, int vblChannelWidth)
      Calculates a channel line and is called once each time for lower and upper channel lines.
      Parameters:
      nPrinter - always 1
      pLinePoints - client points
      nUpperLower - 0 for lower channel line, 1 for upper channel line
      vblCounter - the client point count
      vbiDrawThis - the line type
      vblChannelWidth - the channel width
      Returns:
      the channel line array as POINT2
    • GetChannel1Double

      public static int GetChannel1Double(TGLight tg, double[] lpsaUpperVBPoints, double[] lpsaLowerVBPoints, double[] resultVBPoints, int vblUpperCounter, int vblLowerCounter, int vblChannelWidth, int useptr, ArrayList<Shape2> shapes)
      Calculates the channel points
      Parameters:
      lpsaUpperVBPoints - the client points as 2-tuples
      lpsaLowerVBPoints - the client points as 2 tuples
      resultVBPoints - the result points as 3-tuples x,y,linestyle
      vblUpperCounter - the number of client 2-tuples
      vblLowerCounter - the number of client 2-tuples
      vblChannelWidth - the channel width in pixels
      useptr - the distance in pixels from the arrow tip to the back of the arrowhead
      shapes - the ShapeInfo array, each object contains the GeneralPath
      Returns: