Class AbstractRectangularGraphic

    • Field Detail

      • positions

        protected java.lang.Iterable<? extends Position> positions
      • shapeInvalid

        protected boolean shapeInvalid
    • Constructor Detail

      • AbstractRectangularGraphic

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

      • getWidth

        public double getWidth()
        Indicates the width of the quad.
        Specified by:
        getWidth in interface TacticalQuad
        Returns:
        The width of the quad, in meters.
      • setWidth

        public void setWidth​(double width)
        Specifies the width of the quad.
        Specified by:
        setWidth in interface TacticalQuad
        Parameters:
        width - New width, in meters.
      • getLength

        public double getLength()
        Indicates the length of the quad.
        Specified by:
        getLength in interface TacticalQuad
        Returns:
        The length of the quad, in meters.
      • setLength

        public void setLength​(double length)
        Specifies the length of the quad.
        Specified by:
        setLength in interface TacticalQuad
        Parameters:
        length - New length, in meters.
      • 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
        Parameters:
        positions - Control points. This graphic uses only two control point, which determine the midpoints of two opposite sides of the quad. See Fire Support Area (2.X.4.3.2.1.2) on pg. 652 of MIL-STD-2525C for an example of how these points are interpreted.
      • 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
        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.
      • 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.
      • getReferencePosition

        public Position getReferencePosition()
        A position associated with the object that indicates its aggregate geographic position. The chosen position varies among implementers of this interface. For objects defined by a list of positions, the reference position is typically the first position in the list. For symmetric objects the reference position is often the center of the object. In many cases the object's reference position may be explicitly specified by the application.
        Specified by:
        getReferencePosition in interface Movable
        Returns:
        the object's reference position, or null if no reference position is available.
      • computeQuadSize

        protected void computeQuadSize​(DrawContext dc)
      • applyDelegateOwner

        protected void applyDelegateOwner​(java.lang.Object owner)
        Invoked each frame to apply to the current delegate owner to all renderable objects used to draw the graphic. This base class will apply the delegate owner to Label objects. Subclasses must implement this method to apply the delegate owner to any Renderables that they will draw in order to render the graphic.
        Specified by:
        applyDelegateOwner in class AbstractTacticalGraphic
        Parameters:
        owner - Current delegate owner.