Package armyc2.c5isr.renderer.utilities
Class MilStdAttributes
- java.lang.Object
-
- armyc2.c5isr.renderer.utilities.MilStdAttributes
-
public class MilStdAttributes extends java.lang.ObjectSymbol attribute constants to be used as keys in the Map when callingMilStdIconRenderer.RenderIcon(String, Map, Map)orWebRenderer.RenderSymbol(String, String, String, String, String, String, double, String, Map, Map, int)
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringAlphatransparency value of the symbol with values from 0 - 255.static java.lang.StringAltitudeModeThe mode that altitude labels will be displayed in, the default value is AMSL.static java.lang.StringAltitudeUnitsThe conversion factor and the label that you want all distances to display in.static java.lang.StringDistanceUnitsThe conversion factor and the label that you want all distances to display in.static java.lang.StringDrawAsIconjust draws the core symbolstatic java.lang.StringEngagementBarColorIf the engagement/target amplifier bar is to be used to designate targets, non-targets, and pruned or expired targets, a different coloring schema shall be used.static java.lang.StringFillColorFill color of the symbol.static java.lang.StringFontFamilylike "arial"static java.lang.StringFontSizestatic java.lang.StringFontStyleLike Font.BOLDstatic java.lang.StringHideOptionalLabelsAt the moment, this refers to the optional range fan labels.static java.lang.StringIconColorMain color of internal icon.static java.lang.StringKeepUnitRatiodefaults to truestatic java.lang.StringLineColorLine color of the symbol.static java.lang.StringLineWidthSpecifies the line width of the multipoint symbologystatic java.lang.StringModifierPlacementStrict ("0") for always placing their labels in the specified location even if there's empty space from other labels that weren't populated Flexible ("1") to collapse label vertically to the center to eliminate empty space from labels that weren't populated.static java.lang.StringOutlineColorspecify and outline color rather than letting renderer picking the best contrast color.static java.lang.StringOutlineSymboloutline the symbol, true/falsestatic java.lang.StringPatternFillTypeFor internal usestatic java.lang.StringPatternScaleMultipoint features and patterns scale with line width (LineWidth).static java.lang.StringPixelSizesize of the single point imagestatic java.lang.StringTextBackgroundColorSpecifies the color for the text background (color outline or fill)static java.lang.StringTextColorSpecifies the color for text labelsstatic java.lang.StringUseDashArrayIf false, the renderer will create a bunch of little lines to create the "dash" effect (expensive but necessary for KML).static java.lang.StringUsePatternFillFor internal use
-
Constructor Summary
Constructors Constructor Description MilStdAttributes()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static java.lang.StringgetAttributeKey(java.lang.String attribute)Takes a string representation of an attribute and returns the appropriate int key valuestatic java.lang.StringgetAttributeName(java.lang.String attribute)static java.util.ArrayList<java.lang.String>GetAttributesList(java.lang.String symbolID)static java.util.ArrayList<java.lang.String>GetModifierList()Deprecated.
-
-
-
Field Detail
-
LineColor
public static final java.lang.String LineColor
Line color of the symbol. hex value.- See Also:
- Constant Field Values
-
FillColor
public static final java.lang.String FillColor
Fill color of the symbol. hex value- See Also:
- Constant Field Values
-
IconColor
public static final java.lang.String IconColor
Main color of internal icon. Only relevant to framed symbols. hex value- See Also:
- Constant Field Values
-
PixelSize
public static final java.lang.String PixelSize
size of the single point image- See Also:
- Constant Field Values
-
KeepUnitRatio
public static final java.lang.String KeepUnitRatio
defaults to true- See Also:
- Constant Field Values
-
Alpha
public static final java.lang.String Alpha
transparency value of the symbol with values from 0 - 255.- See Also:
- Constant Field Values
-
OutlineSymbol
public static final java.lang.String OutlineSymbol
outline the symbol, true/false- See Also:
- Constant Field Values
-
OutlineColor
public static final java.lang.String OutlineColor
specify and outline color rather than letting renderer picking the best contrast color. hex value- See Also:
- Constant Field Values
-
DrawAsIcon
public static final java.lang.String DrawAsIcon
just draws the core symbol- See Also:
- Constant Field Values
-
LineWidth
public static final java.lang.String LineWidth
Specifies the line width of the multipoint symbology- See Also:
- Constant Field Values
-
TextColor
public static final java.lang.String TextColor
Specifies the color for text labels- See Also:
- Constant Field Values
-
TextBackgroundColor
public static final java.lang.String TextBackgroundColor
Specifies the color for the text background (color outline or fill)- See Also:
- Constant Field Values
-
UseDashArray
public static final java.lang.String UseDashArray
If false, the renderer will create a bunch of little lines to create the "dash" effect (expensive but necessary for KML). If true, it will be on the user to create the dash effect using the DashArray from the Stroke object from the ShapeInfo object.- See Also:
- Constant Field Values
-
AltitudeMode
public static final java.lang.String AltitudeMode
The mode that altitude labels will be displayed in, the default value is AMSL. This value acts as a label, appending whatever string that is passed in to the end of the altitude units. Currently only effective for multi-point graphics.- See Also:
- Constant Field Values
-
HideOptionalLabels
public static final java.lang.String HideOptionalLabels
At the moment, this refers to the optional range fan labels.- See Also:
- Constant Field Values
-
UsePatternFill
public static final java.lang.String UsePatternFill
For internal use- See Also:
- Constant Field Values
-
PatternFillType
public static final java.lang.String PatternFillType
For internal use- See Also:
- Constant Field Values
-
DistanceUnits
public static final java.lang.String DistanceUnits
The conversion factor and the label that you want all distances to display in. The conversion factor is converting from meters. The default unit is meters.
Must be in the form [conversionFactor],[label]. So for example converting to feet would be "3.28084,FT". The helper classDistanceUnitcan be used.- See Also:
- Constant Field Values
-
AltitudeUnits
public static final java.lang.String AltitudeUnits
The conversion factor and the label that you want all distances to display in. Conventionally, the conversion factor is converting from meters by default, but other values could be passed, like "1,KM" to use an unaltered value in kilometers.
Must be in the form [conversionFactor],[label]. So for example converting meters to feet would be "3.28084,FT". The helper classDistanceUnitcan be used. Currently only effective for multi-point graphics.- See Also:
- Constant Field Values
-
EngagementBarColor
public static final java.lang.String EngagementBarColor
If the engagement/target amplifier bar is to be used to designate targets, non-targets, and pruned or expired targets, a different coloring schema shall be used. Hostile tracks which are deemed targets shall have a red bar (RGB: 255, 0, 0) to indicate target. For hostile tracks deemed to be non-targets, white (RGB: 255, 255, 255) should be used to indicate non target. Finally, for hostile tracks which have been pruned or have expired shall be colored orange (RGB: 255, 120, 0). This attribute expects a hex string for the color- See Also:
- Constant Field Values
-
PatternScale
public static final java.lang.String PatternScale
Multipoint features and patterns scale with line width (LineWidth).PatternScaleis the ratio of how much to increase features and patterns by with line width. default value isRendererSettings.getPatternScale()- See Also:
- Constant Field Values
-
FontFamily
public static final java.lang.String FontFamily
like "arial"- See Also:
- Constant Field Values
-
FontStyle
public static final java.lang.String FontStyle
Like Font.BOLD- See Also:
- Constant Field Values
-
FontSize
public static final java.lang.String FontSize
- See Also:
- Constant Field Values
-
ModifierPlacement
public static final java.lang.String ModifierPlacement
Strict ("0") for always placing their labels in the specified location even if there's empty space from other labels that weren't populated Flexible ("1") to collapse label vertically to the center to eliminate empty space from labels that weren't populated. Does not apply to Control Measures or METOCS Set with values like: RendererSettings.ModifierPlacement_STRICT ("0") RendererSettings.ModifierPlacement_FLEXIBLE ("1")- See Also:
- Constant Field Values
-
-
Method Detail
-
GetModifierList
public static java.util.ArrayList<java.lang.String> GetModifierList()
Deprecated.No Longer relevant- Returns:
ArrayList
-
GetAttributesList
public static java.util.ArrayList<java.lang.String> GetAttributesList(java.lang.String symbolID)
-
getAttributeName
public static java.lang.String getAttributeName(java.lang.String attribute)
- Parameters:
attribute- constant like MilStdAttributes.LineColor- Returns:
- attribute name based on attribute constants
-
getAttributeKey
public static java.lang.String getAttributeKey(java.lang.String attribute)
Takes a string representation of an attribute and returns the appropriate int key value- Parameters:
attribute- "LINECOLOR" will return MilStdAtttributes.LineColor- Returns:
Integervalue representing Attribute constant.
-
-