RendererSettings

external class RendererSettings : JsAny

Static class that holds the setting for the JavaRenderer. Allows different parts of the renderer to know what values are being used.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

if true (default), when HQ Staff is present, location will be indicated by the free end of the staff

Link copied to clipboard

default size single point icons will render on the map

Link copied to clipboard
Link copied to clipboard

True to draw as modifier label in the "E/F" location. False to draw at the top right corner of the symbol

Link copied to clipboard

get the preferred fill affiliation color for graphics.

Link copied to clipboard

get the preferred line affiliation color for graphics.

Link copied to clipboard

get the preferred fill affiliation color for units.

Link copied to clipboard

get the preferred line affiliation color for units.

Link copied to clipboard

get the preferred fill affiliation color for graphics.

Link copied to clipboard

get the preferred line affiliation color for graphics.

Link copied to clipboard

get the preferred fill affiliation color for units.

Link copied to clipboard

get the preferred line affiliation color for units.

Link copied to clipboard
Link copied to clipboard

get font object used for labels

Link copied to clipboard

the font name to be used for modifier labels

Link copied to clipboard

get font point size

Link copied to clipboard

Like Font.BOLD

Link copied to clipboard

get font object used for labels

Link copied to clipboard

the font name to be used for modifier labels

Link copied to clipboard

get font point size

Link copied to clipboard

Like Font.BOLD

Link copied to clipboard

get the preferred fill affiliation color for graphics.

Link copied to clipboard

get the preferred line affiliation color for graphics.

Link copied to clipboard

get the preferred fill affiliation color for units.

Link copied to clipboard

get the preferred line affiliation color for units.

Link copied to clipboard
Link copied to clipboard

Returns the value determining if we scale the echelon font size or just match the font size specified by the label font.

Link copied to clipboard

When true, if the main icon is normally small to allow room for sector modifiers, main icon is made larger when no sector modifiers are present for better visibility.

Link copied to clipboard
Link copied to clipboard

This applies to Single Point Tactical Graphics.

Link copied to clipboard

Value from 0 to 255. The closer to 0 the lighter the text color has to be to have the outline be black. Default value is 160.

Link copied to clipboard

None, outline (default), or filled background.

Link copied to clipboard

if RenderSettings.TextBackgroundMethod_OUTLINE is used, the outline will be this many pixels wide.

Link copied to clipboard

Get a boolean indicating between the use of ENY labels in all segments (false) or to only set 2 labels one at the north and the other one at the south of the graphic (true).

Link copied to clipboard

get the preferred fill affiliation color for graphics.

Link copied to clipboard

get the preferred line affiliation color for graphics.

Link copied to clipboard

get the preferred fill affiliation color for units.

Link copied to clipboard

get the preferred line affiliation color for units.

Link copied to clipboard

Returns the current setting for Line Interpolation.

Link copied to clipboard
Link copied to clipboard

Collapse Modifiers for fire support areas when the symbol isn't large enough to show all the labels. Identifying label will always be visible. Zooming in, to make the symbol larger, will make more modifiers visible. Resizing the symbol can also make more modifiers visible.

Link copied to clipboard

if true (default), when HQ Staff is present, location will be indicated by the free end of the staff

Link copied to clipboard

default size single point icons will render on the map

Link copied to clipboard
fun setDeviceDPI(value: int)

set the screen DPI so the renderer can take DPI into account when rendering for things like dashed lines and decorated lines.

Link copied to clipboard

Determines how to draw the Affiliation modifier. True to draw as modifier label in the "E/F" location. False to draw at the top right corner of the symbol

Link copied to clipboard
fun setFriendlyGraphicFillColor(friendlyGraphicFillColor: Color)

Set the preferred fill affiliation color for graphics

Link copied to clipboard
fun setFriendlyGraphicLineColor(friendlyGraphicLineColor: Color)

Set the preferred line affiliation color for graphics

Link copied to clipboard
fun setFriendlyUnitFillColor(friendlyUnitFillColor: Color)

Set the preferred fill affiliation color for units

Link copied to clipboard
fun setFriendlyUnitLineColor(friendlyUnitLineColor: Color)

Set the preferred line affiliation color for units

Link copied to clipboard
fun setGraphicPreferredAffiliationColors(friendlyGraphicLineColor: Color, hostileGraphicLineColor: Color, neutralGraphicLineColor: Color, unknownGraphicLineColor: Color, friendlyGraphicFillColor: Color, hostileGraphicFillColor: Color, neutralGraphicFillColor: Color, unknownGraphicFillColor: Color)

Set the preferred line and fill affiliation color for tactical graphics.

Link copied to clipboard
fun setHostileGraphicFillColor(hostileGraphicFillColor: Color)

Set the preferred fill affiliation color for graphics

Link copied to clipboard
fun setHostileGraphicLineColor(hostileGraphicLineColor: Color)

Set the preferred line affiliation color for graphics

Link copied to clipboard
fun setHostileUnitFillColor(hostileUnitFillColor: Color)

Set the preferred fill affiliation color for units

Link copied to clipboard
fun setHostileUnitLineColor(hostileUnitLineColor: Color)

Set the preferred line affiliation color for units

Link copied to clipboard
fun setLabelFont(name: String, type: int, size: int)

fun setLabelFont(name: String, weight: String, size: int)

Sets the font to be used for modifier labels

Link copied to clipboard
fun setMPLabelFont(name: String, type: int, size: int)
fun setMPLabelFont(name: String, weight: String, size: int)
fun setMPLabelFont(name: String, type: int, size: int, kmlScale: float)
fun setMPLabelFont(name: String, weight: String, size: int, kmlScale: float)
Link copied to clipboard
fun setNeutralGraphicFillColor(neutralGraphicFillColor: Color)

Set the preferred fill affiliation color for graphics

Link copied to clipboard
fun setNeutralGraphicLineColor(neutralGraphicLineColor: Color)

Set the preferred line affiliation color for graphics

Link copied to clipboard
fun setNeutralUnitFillColor(neutralUnitFillColor: Color)

Set the preferred line affiliation color for units

Link copied to clipboard
fun setNeutralUnitLineColor(neutralUnitLineColor: Color)

Set the preferred line affiliation color for units

Link copied to clipboard

Set the operational condition modifier to be slashes or bars

Link copied to clipboard
Link copied to clipboard

false to use label font size true to scale it using symbolPixelBounds / 3.5

Link copied to clipboard
fun setScaleMainIcon(scaleMainIcon: Boolean)

When true, if the main icon is normally small to allow room for sector modifiers, make it larger when no sector modifiers are present for better visibility.

Link copied to clipboard
Link copied to clipboard

This applies to Single Point Tactical Graphics. Setting this will determine the default value for milStdSymbols when created. 0 for no outline, 1 for outline thickness of 1 pixel, 2 for outline thickness of 2 pixels, greater than 2 is not currently recommended.

Link copied to clipboard

Value from 0 to 255. The closer to 0 the lighter the text color has to be to have the outline be black. Default value is 160.

Link copied to clipboard
fun setTextBackgroundMethod(textBackgroundMethod: int)

None, outline (default), or filled background. If set to OUTLINE, TextOutlineWidth changed to default of 4. If set to OUTLINE_QUICK, TextOutlineWidth changed to default of 1. Use setTextOutlineWidth if you'd like a different value.

Link copied to clipboard
fun setUnitPreferredAffiliationColors(friendlyUnitLineColor: Color, hostileUnitLineColor: Color, neutralUnitLineColor: Color, unknownUnitLineColor: Color, friendlyUnitFillColor: Color, hostileUnitFillColor: Color, neutralUnitFillColor: Color, unknownUnitFillColor: Color)

Set the preferred line and fill affiliation color for units and tactical graphics.

Link copied to clipboard
fun setUnknownGraphicFillColor(unknownGraphicFillColor: Color)

Set the preferred fill affiliation color for graphics

Link copied to clipboard
fun setUnknownGraphicLineColor(unknownGraphicLineColor: Color)

Set the preferred line affiliation color for graphics

Link copied to clipboard
fun setUnknownUnitFillColor(unknownUnitFillColor: Color)

Set the preferred fill affiliation color for units

Link copied to clipboard
fun setUnknownUnitLineColor(unknownUnitLineColor: Color)

Set the preferred line affiliation color for units

Link copied to clipboard

For lines symbols with "decorations" like FLOT or LOC, when points are too close together, we will start dropping points until we get enough space between 2 points to draw the decoration. Without this, when points are too close together, you run the chance that the decorated line will look like a plain line because there was no room between points to draw the decoration.