MilStdSymbol

external class MilStdSymbol : JsAny

Object that holds information on how to draw a multipoint symbol after {@link armyc2.c5isr.web.render.WebRenderer#RenderMultiPointAsMilStdSymbol(String, String, String, String, String, String, double, String, Map, Map)} is called.

Constructors

Link copied to clipboard
constructor(symbolID: String, uniqueID: String?, Coordinates: JsArray<Point2D>, modifiers: JsMap?, keepUnitRatio: Boolean = definedExternally)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var _Tag: JsAny?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
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
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun getModifier(modifier: String): String

Get a modifier value

fun getModifier(modifier: String, index: int): String

Gets modifier value based on modifier constant and index in array

Link copied to clipboard
fun getModifier_AM_AN_X(modifier: String, index: int): String?

Get modifier value for AM, AN or X

Link copied to clipboard

Returns the modifier map for the symbol

Link copied to clipboard
Link copied to clipboard

Shapes that represent the symbol modifiers

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

The Symbol Id of the MilStdSymbol.

Link copied to clipboard

the java shapes that make up the symbol

Link copied to clipboard
fun getTag(): JsAny?

Extra value for client. defaults to null. Not used for rendering by JavaRenderer

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

Unique ID of the Symbol. For client use.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
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 setFillColor(value: Color)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun setLineColor(value: Color?)

If value is null or SymbolUtilities.isGreenProtectionGraphic() is true then value is ignored

Link copied to clipboard
fun setLineWidth(value: int)
Link copied to clipboard
fun setModifier(modifier: String, value: String)

Set a modifier value

fun setModifier(modifier: String, value: String, index: int)

Modifiers must be added in order. No setting index 2 without first setting index 0 and 1. If setting out of order is attempted, the value will just be added to the end of the list.

Link copied to clipboard
fun setModifier_AM_AN_X(modifier: String, value: Double, index: int)
Link copied to clipboard
fun setModifierMap(modifiers: JsMap)

sets the modifier map for the symbol

Link copied to clipboard
fun setModifiers_AM_AN_X(modifier: String, modifiers: JsArray<JsNumber>)
Link copied to clipboard

Shapes that represent the symbol modifiers

Link copied to clipboard

if null, renderer will use white or black for the outline based on the color of the symbol. Otherwise, it will used the passed color value.

Link copied to clipboard

0=Solid, 2=ForwardHatch, 3=BackwardHatch, 4=verticalHatch, 5=horizonalHatch, 8=CrossHatch Only affects Basic Shapes. Will not apply to MilStd Symbology so as to not confuse some symbols with others.

Link copied to clipboard
fun setSymbolID(value: String)

Sets the Symbol ID for the symbol. Should be a 20-30 digit string from the milstd.

Link copied to clipboard

the java shapes that make up the symbol

Link copied to clipboard
fun setTag(value: JsAny?)

Extra value for client. defaults to null. Not used for rendering by JavaRenderer

Link copied to clipboard
Link copied to clipboard
fun setTextColor(value: Color)
Link copied to clipboard
fun setUnitSize(pixelSize: int)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun setUUID(ID: String)

Unique ID of the Symbol. For client use.