Class BasicArea

    • Constructor Detail

      • BasicArea

        public BasicArea​(java.lang.String sidc)
    • 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.
      • 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 - 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. The positions must be specified in the same order as the control points defined by the symbology set's template for this type of graphic.
      • 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.
      • makeShapes

        protected void makeShapes​(DrawContext dc)
      • createLabelText

        protected java.lang.String createLabelText()
        Create the text for the main label on this graphic.
        Returns:
        Text for the main label. May return null if there is no text.
      • getGraphicLabel

        protected java.lang.String getGraphicLabel()
      • getLabelAlignment

        protected java.lang.String getLabelAlignment()
        Indicates the alignment of the graphic's main label.
        Returns:
        Alignment for the main label. One of AVKey.CENTER, AVKey.LEFT, or AVKey.RIGHT.
      • determineMainLabelPosition

        protected Position determineMainLabelPosition​(DrawContext dc)
        Compute the position for the area's main label. This position indicates the position of the first line of the label. If there are more lines, they will be arranged South of the first line.
        Parameters:
        dc - Current draw context.
        Returns:
        Position for the graphic's main label.
      • determineIdentityLabelPositions

        protected void determineIdentityLabelPositions()
      • getPositionCount

        protected int getPositionCount()
      • 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.