Package armyc2.c2sd.renderer.utilities
Class MilStdSymbol
java.lang.Object
armyc2.c2sd.renderer.utilities.MilStdSymbol
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int2525Bch2 and USAS 13/14 symbologystatic final int2525C, which includes 2525Bch2 & USAS 13/14static final intSymbol has arrow heads that are affected by scale changestatic final intSymbol has lines details that are affected by scale change (like FLOT)static final intSymbol is not affected by scale changesstatic final intSymbol has pattern fills that are affected by scale if you're not using the fill pattern image ShapeInfo.getShader() or ShapeInfo.getPatternFillImage()static final intText is not affected by scale changesstatic final intText is affected only by significant scale changesstatic final intText is affected by zoom in scale changesstatic final intText is affected by any scale changes -
Constructor Summary
ConstructorsConstructorDescriptionMilStdSymbol(String symbolID, String uniqueID, ArrayList<Point2D> Coordinates, SparseArray<String> modifiers) MilStdSymbol(String symbolID, String uniqueID, ArrayList<Point2D> Coordinates, SparseArray<String> modifiers, Boolean keepUnitRatio) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanTrue to draw as modifier label in the "E/F" location.booleanintgetModifier(int modifier) getModifier(int modifier, int index) getModifier_AM_AN_X(int modifier, int index) getModifiers_AM_AN_X(int modifier) Shapes that represent the symbol modifiersintThe Symbol Id of the MilStdSymbol.intCurrent symbology standardthe java shapes that make up the symbolgetTag()Extra value for client.booleanbooleanbooleangetUUID()Unique ID of the Symbol.intChecks if the symbol has features that make it scale aware and would require a refresh on zooming in or out.intDetermines if the symbol has integral or modifier/amplifier text that would be impacted if the maps is zoomed in or out after initial draw.voidset_WasClipped(boolean value) voidsetAltitudeMode(String value) voidsetAltitudeUnit(DistanceUnit unit) voidsetCoordinates(ArrayList<Point2D> value) voidsetDistanceUnit(DistanceUnit unit) voidsetDrawAffiliationModifierAsLabel(boolean value) Determines how to draw the Affiliation Modifier.voidsetFillColor(Color value) voidsetFillStyle(TexturePaint value) voidsetHideOptionalLabels(boolean value) voidsetLineColor(Color value) voidsetLineWidth(int value) voidsetModifier(int modifier, String value) voidsetModifier(int modifier, String value, int index) Modifiers must be added in order.voidsetModifier_AM_AN_X(int modifier, Double value, int index) voidsetModifierMap(SparseArray<String> modifiers) voidsetModifiers_AM_AN_X(int modifier, ArrayList<Double> modifiers) voidsetModifierShapes(ArrayList<ShapeInfo> value) Shapes that represent the symbol modifiersvoidsetOutlineColor(Color value) if null, renderer will use white or black for the outline based on the color of the symbol.voidsetPatternFillType(int value) 0=Solid, 2=ForwardHatch, 3=BackwardHatch, 4=verticalHatch, 5=horizonalHatch, 8=CrossHatch Only affects Basic Shapes.voidsetSymbolID(String value) Sets the Symbol ID for the symbol.voidsetSymbologyStandard(int standard) Controls what symbols are supported.voidsetSymbolShapes(ArrayList<ShapeInfo> value) the java shapes that make up the symbolvoidDeprecated.voidsetTextBackgroundColor(Color value) voidsetTextColor(Color value) voidsetUseDashArray(boolean value) voidsetUseFillPattern(boolean value) voidsetUseLineInterpolation(boolean value) voidUnique ID of the Symbol.
-
Field Details
-
Symbology_2525Bch2_USAS_13_14
2525Bch2 and USAS 13/14 symbology- See Also:
-
Symbology_2525C
2525C, which includes 2525Bch2 & USAS 13/14- See Also:
-
TextScaleSensitive_No
Text is not affected by scale changes- See Also:
-
TextScaleSensitive_OnSlightZoomIn
Text is affected only by significant scale changes- See Also:
-
TextScaleSensitive_OnZoomIn
Text is affected by zoom in scale changes- See Also:
-
TextScaleSensitive_OnZoomInOut
Text is affected by any scale changes- See Also:
-
SymbolScaleSensitive_No
Symbol is not affected by scale changes- See Also:
-
SymbolScaleSensitive_ArrowHeads
Symbol has arrow heads that are affected by scale change- See Also:
-
SymbolScaleSensitive_DecoratedLines
Symbol has lines details that are affected by scale change (like FLOT)- See Also:
-
SymbolScaleSensitive_PatternFills
Symbol has pattern fills that are affected by scale if you're not using the fill pattern image ShapeInfo.getShader() or ShapeInfo.getPatternFillImage()- See Also:
-
-
Constructor Details
-
MilStdSymbol
public MilStdSymbol(String symbolID, String uniqueID, ArrayList<Point2D> Coordinates, SparseArray<String> modifiers) - Parameters:
symbolID- code, 15 characters long that represents the symboluniqueID- for the client's usemodifiers- use keys from ModifiersTG or ModifiersUnits.Coordinates-- Throws:
RendererException- NULL is a valid value if you have no set modifiers
-
MilStdSymbol
public MilStdSymbol(String symbolID, String uniqueID, ArrayList<Point2D> Coordinates, SparseArray<String> modifiers, Boolean keepUnitRatio) - Parameters:
symbolID- code, 15 characters long that represents the symboluniqueID- for the client's usemodifiers- use keys from ModifiersTG or ModifiersUnits.Coordinates-keepUnitRatio- - default TRUE- Throws:
RendererException- NULL is a valid value if you have no set modifiers
-
-
Method Details
-
setSymbologyStandard
Controls what symbols are supported. Set this before loading the renderer.- Parameters:
standard- Like RendererSettings.Symbology_2525Bch2_USAS_13_14
-
getFillStyle
-
setFillStyle
-
getUseFillPattern
-
setUseFillPattern
-
getPatternFillType
-
setPatternFillType
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.- Parameters:
value-
-
getSymbologyStandard
Current symbology standard- Returns:
- symbologyStandard Like RendererSettings.Symbology_2525Bch2_USAS_13_14
-
getAltitudeMode
-
setAltitudeMode
-
getAltitudeUnit
-
setAltitudeUnit
-
getDistanceUnit
-
setDistanceUnit
-
getUseDashArray
-
setUseDashArray
-
getHideOptionalLabels
-
setHideOptionalLabels
-
setUseLineInterpolation
-
getUseLineInterpolation
-
setDrawAffiliationModifierAsLabel
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 -
getDrawAffiliationModifierAsLabel
True to draw as modifier label in the "E/F" location. False to draw at the top right corner of the symbol -
getModifierMap
- Returns:
-
setModifierMap
- Parameters:
modifiers-
-
getModifier
- Parameters:
modifier-- Returns:
-
setModifier
- Parameters:
modifier-value-
-
getModifier
- Parameters:
modifier-index-- Returns:
-
getModifier_AM_AN_X
- Parameters:
modifier-index-- Returns:
-
setModifier
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.- Parameters:
modifier-value-index-
-
setModifier_AM_AN_X
-
getModifiers_AM_AN_X
-
setModifiers_AM_AN_X
-
setFillColor
- Parameters:
value-
-
getFillColor
- Returns:
-
setTextColor
- Parameters:
value-
-
getTextColor
- Returns:
-
setTextBackgroundColor
- Parameters:
value-
-
getTextBackgroundColor
- Returns:
-
setLineWidth
- Parameters:
value-
-
getLineWidth
- Returns:
-
setLineColor
- Parameters:
value-
-
getLineColor
- Returns:
-
setOutlineColor
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.- Parameters:
value-
-
getOutlineColor
-
setTag
Deprecated.Extra value for client. defaults to null. Not used for rendering by JavaRenderer- Parameters:
value-
-
getTag
Extra value for client. defaults to null. Not used for rendering by JavaRenderer- Returns:
-
setCoordinates
- Parameters:
value-
-
getCoordinates
- Returns:
-
setModifierShapes
Shapes that represent the symbol modifiers- Parameters:
value- ArrayList
-
getModifierShapes
Shapes that represent the symbol modifiers- Returns:
-
setSymbolShapes
the java shapes that make up the symbol- Parameters:
value- ArrayList
-
getSymbolShapes
the java shapes that make up the symbol- Returns:
-
getSymbolID
The Symbol Id of the MilStdSymbol.- Returns:
-
getUUID
Unique ID of the Symbol. For client use.- Returns:
-
setUUID
Unique ID of the Symbol. For client use.- Parameters:
ID-
-
setSymbolID
Sets the Symbol ID for the symbol. Should be a 15 character string from the milstd.- Parameters:
value-- Throws:
RendererException
-
set_WasClipped
-
get_WasClipped
-
isTextScaleSensitive
Determines if the symbol has integral or modifier/amplifier text that would be impacted if the maps is zoomed in or out after initial draw.- Returns:
- 0=not sensitive, 1=slightly little zoom in sensitive, 2=zoom in sensitive, 3=zoom in/out sensitive
-
isSymbolScaleSensitive
Checks if the symbol has features that make it scale aware and would require a refresh on zooming in or out.- Returns:
- 0=No,1=arrowheads,2=decoratedLines,3=patternFills
-