Package armyc2.c5isr.JavaLineArray
Class Channels
java.lang.Object
armyc2.c5isr.JavaLineArray.Channels
CELineArray Channels class calculates the channel points
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected 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 pointsprotected 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
-
Constructor Details
-
Channels
public Channels()
-
-
Method Details
-
setClient
-
getShiftLines
-
GetTripleCountDouble
Calculates the point count for the concertina wire and fence channels.- Parameters:
pLinePoints
- client pointsvblCounter
- the client point countlinetype
- 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 1pLinePoints
- client pointsnUpperLower
- 0 for lower channel line, 1 for upper channel linevblCounter
- the client point countvbiDrawThis
- the line typevblChannelWidth
- 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-tupleslpsaLowerVBPoints
- the client points as 2 tuplesresultVBPoints
- the result points as 3-tuples x,y,linestylevblUpperCounter
- the number of client 2-tuplesvblLowerCounter
- the number of client 2-tuplesvblChannelWidth
- the channel width in pixelsuseptr
- the distance in pixels from the arrow tip to the back of the arrowheadshapes
- the ShapeInfo array, each object contains the GeneralPath- Returns:
-