Class Airborne

    • Constructor Detail

      • Airborne

        public Airborne​(java.lang.String sidc)
        Create a new Airborne graphic.
        Parameters:
        sidc - Symbol code the identifies the graphic.
    • Method Detail

      • getSupportedGraphics

        public static java.util.List<java.lang.String> getSupportedGraphics()
        Indicates the graphics supported by this class.
        Returns:
        List of masked SIDC strings that identify graphics that this class supports.
      • 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 AbstractMilStd2525TacticalGraphic
        Parameters:
        modifier - Key that identifies the modifier to set. The possible modifiers depends on the symbol set.
        value - New value for the modifier.
      • 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 AbstractMilStd2525TacticalGraphic
        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.
      • getSymbol

        public java.lang.String getSymbol()
        Indicates a symbol drawn at the center of the range fan.
        Returns:
        The symbol drawn at the center of the range fan. May be null.
      • setSymbol

        public void setSymbol​(java.lang.String sidc)
        Specifies a symbol to draw between the first two points of the arrow. Equivalent to setting the SymbologyConstants.SYMBOL_INDICATOR modifier. The symbol's position will be set to a position between the first two control points of the Airborne arrow.
        Parameters:
        sidc - The identifier of a symbol in the MIL-STD-2525C symbology set, or null to indicate that no symbol will be drawn.
      • setPositions

        public void setPositions​(java.lang.Iterable<? extends Position> positions)
        Specifies the positions of the control points that place and orient the graphic.
        Specified by:
        setPositions in interface TacticalGraphic
        Overrides:
        setPositions in class AbstractAxisArrow
        Parameters:
        positions - Control points that orient the graphic. Must provide at least three points.
      • doRenderGraphicModifiers

        public void doRenderGraphicModifiers​(DrawContext dc)
        Render the graphic modifiers. This base class does not render anything, but subclasses may override this method to draw graphic modifiers. Overridden to render tactical symbol.
        Overrides:
        doRenderGraphicModifiers in class AbstractTacticalGraphic
        Parameters:
        dc - Current draw context.
      • computeSymbolPosition

        protected Position computeSymbolPosition()
        Compute the position of the symbol drawn between the first two control points.
        Returns:
        Position of the symbol, or null if the graphic has no positions.