createTextBoxes
public static float[][] createTextBoxes(LineString string,
double hOffset,
double textLength,
double textHeight,
BoolResult isReverseX)
Create an array of boxes along the specified line. The creation of boxes will start at
hOffset along the string, and generate boxes for the length specified with the
textLength parameter. The method will return an array of double representing the boxes created. Let
boxes be that array, then
boxes[i] will contain the i'th box created.
-
Parameters:
-
string - the string to create boxes along
-
hOffset - the amount to skip on the way before starting box creation.
-
textLength - the length for which to create boxes.
-
textHeight - the height of the boxes.
-
isReverseX - an out parameter telling whether the area the boxes have been created for is reverse in respect to the x coordinate, i.e. the first coordinate is on the right of the last coordinate.
-
Returns:
-
an array of double describing boxes.