Class AbstractCircularGraphic

    • Constructor Detail

      • AbstractCircularGraphic

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

      • getRadius

        public double getRadius()
        Indicates the radius of this circle. Calling this method is equivalent to calling getModifier(SymbologyConstants.DISTANCE ).
        Specified by:
        getRadius in interface TacticalCircle
        Returns:
        The radius of this circle, in meters.
      • setRadius

        public void setRadius​(double radius)
        Specifies the radius of this circle. Calling this method is equivalent to calling setModifier(SymbologyConstants.DISTANCE, value).
        Specified by:
        setRadius in interface TacticalCircle
        Parameters:
        radius - New radius, in meters.
      • getPosition

        public Position getPosition()
        Indicates the position of the graphic.
        Specified by:
        getPosition in interface TacticalPoint
        Returns:
        The position of the graphic.
      • setPosition

        public void setPosition​(Position position)
        Specifies the position of the graphic.
        Specified by:
        setPosition in interface TacticalPoint
        Parameters:
        position - New position.
      • 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 one control point, which determines the center of the circle.
      • 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.
      • 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.
      • 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.
      • reset

        protected void reset()
        Invoked when the position or radius of the circle changes. This implementation does nothing, but subclasses can override to invalid state when the graphic is changed.
      • determineActiveAttributes

        protected void determineActiveAttributes()
        Determine active attributes for this frame. Overridden to apply the delegate owner to shapes used to draw the circle.
        Overrides:
        determineActiveAttributes in class AbstractTacticalGraphic
      • 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.