Class Airhead

    • Field Detail

      • DEFAULT_OFFSET

        public static final Offset DEFAULT_OFFSET
        Default offset to apply to the label. The default aligns the top center of the label with the label's geographic position, in order to keep the text South of the area.
    • Constructor Detail

      • Airhead

        public Airhead​(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.
      • createLabelText

        protected java.lang.String createLabelText()
        Description copied from class: BasicArea
        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.
      • 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.
        Overrides:
        determineMainLabelPosition in class BasicArea
        Parameters:
        dc - Current draw context.
        Returns:
        Position for the graphic's 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.