Companion

object Companion

Functions

Link copied to clipboard

Called by the renderer after tg.Pixels has been filled with the calculated points. The modifier path depends on points calculated by CELineArray.

Link copied to clipboard
fun AddModifiersGeo(tg: TGLight, g2d: Graphics2D, clipBounds: Rectangle2D?, converter: IPointConversion)
fun AddModifiersGeo(tg: TGLight, g2d: Graphics2D, clipBounds: JsArray<Point2D>?, converter: IPointConversion)

Calculate modifiers identical to addModifiers except use geodesic calculations for the center point.

Link copied to clipboard
fun BuildModifierShape(tg: TGLight, pt0: POINT2, pt1: POINT2, stringWidth: int, stringHeight: int, lineFactor: double, isTextFlipped: Boolean): Shape2

Returns a Shape object for the text background for labels and modifiers

Link copied to clipboard
fun createTextOutline(originalText: Shape2): Shape2

Creates text outline as a shape

Link copied to clipboard

Displays the tg modifiers using a client Graphics2D, this is an option provided to clients for displaying modifiers without using shapes

Link copied to clipboard
fun DisplayModifiers2(tg: TGLight, g2d: Graphics2D, shapes: JsArray<Shape2>, isTextFlipped: Boolean, converter: IPointConversion)

Displays the modifiers to a Graphics2D from a BufferedImage

Link copied to clipboard

For BOUNDARY and other line types which require breaks for the integral text. Currently only boundary uses this

Link copied to clipboard
fun GetMBR(tg: TGLight, ptUl: POINT2, ptUr: POINT2, ptLr: POINT2, ptLl: POINT2)

Returns symbol MBR. Assumes points have been initialized with value of 0th point

Link copied to clipboard

Builds a shape object to wrap text

Link copied to clipboard
fun RemoveModifiers(tg: TGLight, g2d: Graphics2D, isTextFlipped: Boolean, iteration: int)

removes text modifiers for CPOF tactical areas which do not fit inside the symbol MBR