Class BattlePosition

    • Field Detail

      • PBNO_OUTLINE_STIPPLE_FACTOR

        protected static final int PBNO_OUTLINE_STIPPLE_FACTOR
        Factor applied to the stipple pattern used to draw the dashed line for a Prepared but not Occupied area.
        See Also:
        Constant Field Values
      • echelonSymbol

        protected TacticalSymbol echelonSymbol
        Tactical symbol used to render the echelon modifier.
    • Constructor Detail

      • BattlePosition

        public BattlePosition​(java.lang.String sidc)
        Create a new area graphic.
        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.
      • 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.
      • createLabelText

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

        protected void determineLabelPositions​(DrawContext dc)
        Determine the appropriate position for the graphic's labels. Overridden to determine the position of the echelon label.
        Overrides:
        determineLabelPositions in class BasicArea
        Parameters:
        dc - Current draw context.
      • determineIdentityLabelPositions

        protected void determineIdentityLabelPositions()
        Overridden to determine the position of the echelon label as well as the identity labels.
        Overrides:
        determineIdentityLabelPositions in class BasicArea
      • applyDefaultAttributes

        protected void applyDefaultAttributes​(ShapeAttributes attributes)
        Description copied from class: AbstractMilStd2525TacticalGraphic
        Apply defaults to the active attributes bundle. The default attributes are determined by the type of graphic. This method is called each frame to reset the active shape attributes to the appropriate default state. Override attributes specified by the application may be applied after the defaults have been set.
        Overrides:
        applyDefaultAttributes in class AbstractMilStd2525TacticalGraphic
        Parameters:
        attributes - Attributes bundle to receive defaults.
      • 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 delegate owner to echelon symbol.
        Overrides:
        applyDelegateOwner in class BasicArea
        Parameters:
        owner - Current delegate owner.
      • createEchelonSymbol

        protected TacticalSymbol 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.