Class Aviation

    • Constructor Detail

      • Aviation

        public Aviation​(java.lang.String sidc)
        Create a new Aviation graphic.
        Parameters:
        sidc - Symbol code the identifies the graphic.
      • Aviation

        protected Aviation​(java.lang.String sidc,
                           int numPaths)
        Create a new Aviation graphic, composed of more than one path. This constructor is for use by subclasses that extend the base Aviation graphic by adding additional paths.
        Parameters:
        sidc - Symbol code the identifies the graphic.
        numPaths - Number of paths to create.
    • 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'
         
        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.