Package armyc2.c5isr.renderer.utilities
Class MilStdSymbol
java.lang.Object
armyc2.c5isr.renderer.utilities.MilStdSymbol
Object that holds information on how to draw a multipoint symbol after
WebRenderer.RenderMultiPointAsMilStdSymbol(String, String, String, String, String, String, double, String, Map, Map)
is called.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
Deprecated.boolean
boolean
int
getModifier
(String modifier) getModifier
(String modifier, int index) getModifier_AM_AN_X
(String modifier, int index) getModifiers_AM_AN_X
(String modifier) Shapes that represent the symbol modifiersint
Deprecated.double
The Symbol Id of the MilStdSymbol.the java shapes that make up the symbolgetTag()
Deprecated.int
boolean
boolean
boolean
getUUID()
Unique ID of the Symbol.void
set_WasClipped
(boolean value) void
setAltitudeMode
(String value) void
setAltitudeUnit
(DistanceUnit unit) void
setCoordinates
(ArrayList<Point2D> value) void
setDistanceUnit
(DistanceUnit unit) void
setDrawAffiliationModifierAsLabel
(boolean value) Deprecated.void
setFillColor
(Color value) void
setFillStyle
(TexturePaint value) void
setHideOptionalLabels
(boolean value) void
setKeepUnitRatio
(boolean value) void
setLineColor
(Color value) If value is null or SymbolUtilities.isGreenProtectionGraphic() is true then value is ignoredvoid
setLineWidth
(int value) void
setModifier
(String modifier, String value) void
setModifier
(String modifier, String value, int index) Modifiers must be added in order.void
setModifier_AM_AN_X
(String modifier, Double value, int index) void
setModifierMap
(Map<String, String> modifiers) void
setModifiers_AM_AN_X
(String modifier, ArrayList<Double> modifiers) void
setModifierShapes
(ArrayList<ShapeInfo> value) Shapes that represent the symbol modifiersvoid
setOutlineColor
(Color value) if null, renderer will use white or black for the outline based on the color of the symbol.void
setPatternFillType
(int value) Deprecated.void
setPatternScale
(double scale) Multipoint features and patterns scale with line width (getLineWidth()
).void
setSymbolID
(String value) Sets the Symbol ID for the symbol.void
setSymbolShapes
(ArrayList<ShapeInfo> value) the java shapes that make up the symbolvoid
Deprecated.void
setTextBackgroundColor
(Color value) void
setTextColor
(Color value) void
setUnitSize
(int pixelSize) void
setUseDashArray
(boolean value) void
setUseFillPattern
(boolean value) void
setUseLineInterpolation
(boolean value) void
Unique ID of the Symbol.
-
Constructor Details
-
MilStdSymbol
public MilStdSymbol(String symbolID, String uniqueID, ArrayList<Point2D> Coordinates, Map<String, String> modifiers) Creates a new MilStdSymbol.- Parameters:
symbolID
- code, 20-30 digits long that represents the symboluniqueID
- for the client's usemodifiers
- use keys from Modifiers.Coordinates
- modifiers
-
MilStdSymbol
public MilStdSymbol(String symbolID, String uniqueID, ArrayList<Point2D> Coordinates, Map<String, String> modifiers, Boolean keepUnitRatio) - Parameters:
symbolID
- code, 20-30 digits long that represents the symboluniqueID
- for the client's usemodifiers
- use keys from Modifiers.Coordinates
-keepUnitRatio
- - default TRUE modifiers
-
-
Method Details
-
getFillStyle
-
setFillStyle
-
getUseFillPattern
-
setUseFillPattern
-
getPatternFillType
Deprecated. -
setPatternFillType
Deprecated.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
-
-
getAltitudeMode
-
setAltitudeMode
-
getAltitudeUnit
-
setAltitudeUnit
-
getDistanceUnit
-
setDistanceUnit
-
getUseDashArray
-
setUseDashArray
-
getHideOptionalLabels
-
setHideOptionalLabels
-
setUseLineInterpolation
-
getUseLineInterpolation
-
setUnitSize
-
getUnitSize
-
setKeepUnitRatio
-
getKeepUnitRatio
-
setDrawAffiliationModifierAsLabel
Deprecated.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
Deprecated.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
If value is null or SymbolUtilities.isGreenProtectionGraphic() is true then value is ignored- 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
Deprecated.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<Shape>
-
getModifierShapes
Shapes that represent the symbol modifiers- Returns:
-
setSymbolShapes
the java shapes that make up the symbol- Parameters:
value
- ArrayList<ShapeInfo>
-
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 20-30 digit string from the milstd.- Parameters:
value
-
-
set_WasClipped
-
get_WasClipped
-
setPatternScale
Multipoint features and patterns scale with line width (getLineWidth()
).patternScale
is the ratio of how much to increase features and patterns by with line width. default value is 1.0. Can be set withRendererSettings.setPatternScale(double)
andMilStdAttributes.PatternScale
- Parameters:
scale
-
-
getPatternScale
-