Class RectangularTarget

    • Constructor Detail

      • RectangularTarget

        public RectangularTarget​(java.lang.String sidc)
        Create a new target.
        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.
      • getHeading

        public Angle getHeading()
        Indicates this shape's heading, its rotation clockwise from north. Calling this method is equivalent to calling getModifier(SymbologyConstants.AZIMUTH).
        Returns:
        this shape's heading, or null if no heading has been specified.
      • setHeading

        public void setHeading​(Angle heading)
        Specifies this shape's heading, its rotation clockwise from north. Calling this method is equivalent to calling setModifier(SymbologyConstants.AZIMUTH, heading).
        Parameters:
        heading - this shape's heading.
      • 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 AbstractRectangularGraphic
        Parameters:
        positions - Control points. This graphic uses only one control point, which determines the center of the quad.
      • 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 AbstractRectangularGraphic
        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 AbstractRectangularGraphic
        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.
      • getPositions

        public java.lang.Iterable<? extends Position> getPositions()
        Indicates the positions of the control points that place and orient the graphic.
        Specified by:
        getPositions in interface TacticalGraphic
        Overrides:
        getPositions in class AbstractRectangularGraphic
        Returns:
        positions that orient the graphic. How many positions are returned depends on the type of graphic. Some graphics require only a single position, others require many.