Package JavaLineArray
Class CELineArray
java.lang.Object
JavaLineArray.CELineArray
A class for the interface between the points calculation CELineArray and
the tactical renderer.
- Author:
- Michael Deutch
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intCGetChannel2Double(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 clsChannelUtilitystatic intCGetLineCountDouble(double[] plArrayOfLongs, int lElements, int lineType, int ChannelWidth, int rev) public function to return the line count required for all of the symbolsstatic intCGetLinetypeFromString(String strLine, int rev) Return the line type as a hierarchy from the 15 character Mil-Standard-2525 symbol codestatic intCIsChannel(int lineType) Return true is the line type is a channel typestatic Stringstatic void
-
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 pixelslpsaLowerVBPoints- generally the same as the upper pointsresultVBPoints- calculated points to return as 3 tuples: x,y,linestylevblUpperCounter- the number of client pointsvblLowerCounter- the number of client pointsvbiDrawThis- the line type as a hierarchyvblChannelWidth- the channel width in pixelsusePtr- currently being used as the distance from the this to the back of the arrowheadshapes- 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 typeChannelWdith- the chanel width in pixelsrev- the Mil-Standard-2525 revision- Returns:
- the number of points which will be required for the symbol.
-
CGetLinetypeFromString
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
-
getClient
-