Class RectangularFireSupportArea

  • All Implemented Interfaces:
    AVList, Draggable, Movable, Highlightable, PreRenderable, Renderable, MilStd2525TacticalGraphic, TacticalGraphic, TacticalQuad

    public class RectangularFireSupportArea
    extends AbstractRectangularGraphic
    implements TacticalQuad, PreRenderable
    Implementation of rectangular Fire Support graphics. This class implements the following graphics:
    • Free Fire Area (FFA), Rectangular (2.X.4.3.2.3.2)
    • Restrictive Fire Area (RFA), Rectangular (2.X.4.3.2.5.2)
    • Airspace Coordination Area (ACA), Rectangular (2.X.4.3.2.2.2)
    • Sensor Zone, Rectangular
    • Dead Space Area, Rectangular
    • Zone of Responsibility, Rectangular
    • Target Build-up Area
    • Target Value Area, Rectangular
    • Artillery Target Intelligence Zone, Rectangular (2.X.4.3.3.1.2)
    • Call For Fire Zone, Rectangular (2.X.4.3.3.2.2)
    • Censor Zone, Rectangular (2.X.4.3.3.4.2)
    • Critical Friendly Zone, Rectangular (2.X.4.3.3.6.2)
    • Field Detail

      • DIAGONAL_FILL_PATH

        protected static final java.lang.String DIAGONAL_FILL_PATH
        Path to the image used for the polygon fill pattern.
        See Also:
        Constant Field Values
      • LEFT_ALIGN_OFFSET

        protected static final Offset LEFT_ALIGN_OFFSET
        Center text block on label position when the text is left aligned.
    • Constructor Detail

      • RectangularFireSupportArea

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

        public static java.util.Set<java.lang.String> getGraphicsWithTimeLabel()
        Indicates the function IDs of rectangular Fire Support area graphics that display a date/time range as a separate label at the left side of the rectangle. Whether or not a graphic supports this is determined by the graphic's template in MIL-STD-2525C.
        Returns:
        A Set containing the function IDs of graphics that support a date/time label separate from the graphic's main label.
      • getMainLabelTextAlign

        protected java.lang.String getMainLabelTextAlign()
        Indicates the text alignment to apply to the main label of this graphic.
        Returns:
        Text alignment for the main label.
      • 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.
      • applyDefaultAttributes

        protected void applyDefaultAttributes​(ShapeAttributes attributes)
        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.
      • isFilled

        protected boolean isFilled()
        Indicates whether or not the polygon must be filled with a diagonal line pattern.
        Returns:
        true if the polygon must be filled, otherwise false.
      • getImageSource

        protected java.lang.Object getImageSource()
        Indicates the source of the image that provides the polygon fill pattern.
        Returns:
        The source of the polygon fill pattern.