Class Boundary

    • Field Detail

      • TOP_LABEL_OFFSET

        protected static final Offset TOP_LABEL_OFFSET
        Offset applied to the graphic's upper label. This offset aligns the bottom edge of the label with the geographic position, in order to keep the label above the graphic as the zoom changes.
      • BOTTOM_LABEL_OFFSET

        protected static final Offset BOTTOM_LABEL_OFFSET
        Offset applied to the graphic's lower label. This offset aligns the top edge of the label with the geographic position, in order to keep the label above the graphic as the zoom changes.
      • echelonSymbols

        protected java.util.List<EchelonSymbol> echelonSymbols
        Tactical symbols used to render the echelon modifiers.
      • haveTopLabel

        protected boolean haveTopLabel
        Indicates whether or not there are labels above the boundary line.
      • haveBottomLabel

        protected boolean haveBottomLabel
        Indicates whether or not there are labels below the boundary line.
      • haveHostileLabels

        protected boolean haveHostileLabels
        Indicates whether or not there are hostile indicator labels ("ENY") along the line.
    • Constructor Detail

      • Boundary

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

        public java.lang.String getAdditionalText()
        Indicates an additional text identification for this graphic. This value is equivalent to the "T1" modifier in MIL-STD-2525C (a second Unique Designation modifier).
        Returns:
        The additional text. May be null.
      • setAdditionalText

        public void setAdditionalText​(java.lang.String text)
        Indicates an additional text identification for this graphic. Setting this value is equivalent to setting the "T1" modifier in MIL-STD-2525C (a second Unique Designation modifier).
        Parameters:
        text - The additional text. May be null.
      • doRenderGraphicModifiers

        protected 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 the echelon modifier.
        Overrides:
        doRenderGraphicModifiers in class AbstractTacticalGraphic
        Parameters:
        dc - Current draw context.
      • createLabels

        protected void createLabels()
        Create labels for the start and end of the path.
        Overrides:
        createLabels in class PhaseLine
      • mustCreateIdentityLabels

        protected boolean mustCreateIdentityLabels()
      • determineLabelPositions

        protected void determineLabelPositions​(DrawContext dc)
        Determine positions for the start and end labels.
        Overrides:
        determineLabelPositions in class PhaseLine
        Parameters:
        dc - Current draw context.
      • 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. Overridden to apply owner to echelon modifiers.
        Overrides:
        applyDelegateOwner in class PhaseLine
        Parameters:
        owner - Current delegate owner.
      • getDefaultLabelOffset

        protected Offset getDefaultLabelOffset()
        Indicates the default offset applied to the graphic's main label. This offset may be overridden by the graphic attributes.
        Overrides:
        getDefaultLabelOffset in class AbstractTacticalGraphic
        Returns:
        Offset to apply to the main label.
      • getTopLabelOffset

        protected Offset getTopLabelOffset()
        Indicates the offset applied to the upper label.
        Returns:
        Offset applied to the upper label.
      • getBottomLabelOffset

        protected Offset getBottomLabelOffset()
        Indicates the offset applied to the lower label.
        Returns:
        Offset applied to the bottom label.
      • createEchelonSymbol

        protected EchelonSymbol createEchelonSymbol​(java.lang.String sidc)
        Create a tactical symbol to render the echelon modifier.
        Parameters:
        sidc - Identifier for the symbol.
        Returns:
        A symbol to render the echelon modifier.