Class AbstractMilStd2525TacticalGraphic

    • Field Detail

      • OUTLINE_STIPPLE_FACTOR_PRESENT

        protected static final int OUTLINE_STIPPLE_FACTOR_PRESENT
        Factor applied to the stipple pattern used to draw graphics in present state.
        See Also:
        Constant Field Values
      • OUTLINE_STIPPLE_FACTOR_ANTICIPATED

        protected static final int OUTLINE_STIPPLE_FACTOR_ANTICIPATED
        Factor applied to the stipple pattern used to draw graphics in anticipated state.
        See Also:
        Constant Field Values
      • OUTLINE_STIPPLE_PATTERN

        protected static final short OUTLINE_STIPPLE_PATTERN
        Stipple pattern applied to graphics in the anticipated state.
        See Also:
        Constant Field Values
      • symbolCode

        protected SymbolCode symbolCode
        Indicates a string identifier for this symbol. The format of the identifier depends on the symbol set to which this graphic belongs. For symbols belonging to the MIL-STD-2525 symbol set, this returns a 15-character alphanumeric symbol identification code (SIDC). Calculated from the current modifiers at construction and during each call to setModifier(String, Object). Initially null.
      • maskedSymbolCode

        protected java.lang.String maskedSymbolCode
        Symbol identifier with fields that do not influence the type of graphic replaced with hyphens. See SymbolCode.toMaskedString().
    • Constructor Detail

      • AbstractMilStd2525TacticalGraphic

        protected AbstractMilStd2525TacticalGraphic​(java.lang.String symbolCode)
    • Method Detail

      • getIdentifier

        public java.lang.String getIdentifier()
        Indicates a string identifier for this graphic. The format of the identifier depends on the symbol set to which the graphic belongs.
        Specified by:
        getIdentifier in interface TacticalGraphic
        Returns:
        An identifier for this graphic.
      • getModifier

        public java.lang.Object getModifier​(java.lang.String modifier)
        Indicates the current value of a text or graphic modifier.
        Specified by:
        getModifier in interface TacticalGraphic
        Overrides:
        getModifier in class AbstractTacticalGraphic
        Parameters:
        modifier - Key that identifies the modifier to retrieve. The possible modifiers depends on the symbol set.
        Returns:
        The value of the modifier, or null if the modifier is not set.
      • setModifier

        public void setModifier​(java.lang.String modifier,
                                java.lang.Object value)
        Specifies the value of a text or graphic modifier.
        Specified by:
        setModifier in interface TacticalGraphic
        Overrides:
        setModifier in class AbstractTacticalGraphic
        Parameters:
        modifier - Key that identifies the modifier to set. The possible modifiers depends on the symbol set.
        value - New value for the modifier.
      • setStatus

        public void setStatus​(java.lang.String value)
        Specifies this graphic's Status/Operational Condition field. A graphic's Status defines whether the represented object exists at the time the symbol was generated, or is anticipated to exist in the future. Additionally, a graphic's Status can define its operational condition. The recognized values depend on the graphic's scheme:

        Tactical graphics

        • STATUS_ANTICIPATED
        • STATUS_SUSPECTED
        • STATUS_PRESENT
        • STATUS_KNOWN

        Meteorological and Oceanographic

        • Not supported

        Emergency Management

        • STATUS_ANTICIPATED
        • STATUS_PRESENT
        Specified by:
        setStatus in interface MilStd2525TacticalGraphic
        Parameters:
        value - the new value for the Status/Operational Condition field.
      • mustShowHostileIndicator

        protected boolean mustShowHostileIndicator()
        Indicates whether or not the graphic must display the hostile/enemy indicator, if the graphic supports the indicator.
        Returns:
        true if AbstractTacticalGraphic.isShowHostileIndicator() is true, and the graphic represents a hostile entity.
      • applyDefaultAttributes

        protected void applyDefaultAttributes​(ShapeAttributes attributes)
        Apply defaults to the active attributes bundle. The default attributes are determined by the type of graphic. This method is called each frame to reset the active shape attributes to the appropriate default state. Override attributes specified by the application may be applied after the defaults have been set.
        Overrides:
        applyDefaultAttributes in class AbstractTacticalGraphic
        Parameters:
        attributes - Attributes bundle to receive defaults.
      • getOutlineStippleFactor

        protected int getOutlineStippleFactor()
        Indicates the factor applied to the stipple pattern used to draw dashed lines when the graphic is "anticipated". This value is not used when the graphic is "present".
        Returns:
        Factor applied to the stipple pattern.
        See Also:
        ShapeAttributes.getOutlineStippleFactor()
      • getOutlineStipplePattern

        protected short getOutlineStipplePattern()
        Indicates the stipple pattern used to draw dashed lines when the graphic is "anticipated".
        Returns:
        Factor applied to the stipple pattern.
        See Also:
        ShapeAttributes.getOutlineStipplePattern()
      • getDefaultMaterial

        protected Material getDefaultMaterial()
        Indicates the default Material for this graphic.
        Returns:
        The default material, determined by the graphic's standard identity.