Class AdvanceForFeint

    • Field Detail

      • DASHED_LINE_DISTANCE

        protected static final double DASHED_LINE_DISTANCE
        Factor used to compute the distance between the solid and dashed lines in the arrow head. A larger value will move the dashed line farther from the solid line.
        See Also:
        Constant Field Values
      • dashedAttributes

        protected ShapeAttributes dashedAttributes
        Shape attributes for the dashed part of the graphic.
    • Constructor Detail

      • AdvanceForFeint

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

        protected double createArrowHeadPositions​(java.util.List<Position> leftPositions,
                                                  java.util.List<Position> rightPositions,
                                                  java.util.List<Position> arrowHeadPositions,
                                                  Globe globe)
        Create positions that make up the arrow head.

        The arrow head is defined by the first two control points, and the last point. Pt. 1' is the point on the center line at the base of the arrow head, and Pt. N' is the reflection of Pt. N about the center line.

                         Pt N
                         |\
         Left line       | \
         ----------------|  \
         Pt 2        Pt 1'   \ Pt 1
                             /
         ----------------|  /
         Right line      | /
                         |/Pt N'
         
        Overridden to compute positions for the dashed portion of the arrow head.
        Overrides:
        createArrowHeadPositions in class AbstractAxisArrow
        Parameters:
        leftPositions - List to collect positions on the left arrow line. This list receives the position where the left line meets the arrow head.
        rightPositions - List to collect positions on the right arrow line. This list receives the position where the right line meets the arrow head.
        arrowHeadPositions - List to collect positions that make up the arrow head. This list receives positions for Pt. N, Pt. 1, and Pt. N', in that order.
        globe - Current globe.
        Returns:
        The distance from the center line to the left and right lines.