Class ArrowElement

    • Field Summary

      Fields 
      Modifier and Type Field Description
      Color color
      Color of the arrow.
      boolean direction
      Boolean that is true if the arrow points from start to end, false if from end to start.
      double endX
      X coordinate of the point where the arrow ends.
      double endY
      Y coordinate of the point where the arrow ends.
      double startX
      X coordinate of the point where the arrow starts.
      double startY
      Y coordinate of the point where the arrow starts.
      double width
      Width of the arrow line.
    • Constructor Summary

      Constructors 
      Constructor Description
      ArrowElement​(double startX, double startY, double endX, double endY, double width, boolean direction, Color color)
      Constructor for an arrow element, based on starting point, end point, width, direction, and color.
    • Field Detail

      • startX

        public final double startX
        X coordinate of the point where the arrow starts.
      • startY

        public final double startY
        Y coordinate of the point where the arrow starts.
      • endX

        public final double endX
        X coordinate of the point where the arrow ends.
      • endY

        public final double endY
        Y coordinate of the point where the arrow ends.
      • width

        public final double width
        Width of the arrow line.
      • color

        public final Color color
        Color of the arrow.
      • direction

        public final boolean direction
        Boolean that is true if the arrow points from start to end, false if from end to start.
    • Constructor Detail

      • ArrowElement

        public ArrowElement​(double startX,
                            double startY,
                            double endX,
                            double endY,
                            double width,
                            boolean direction,
                            Color color)
        Constructor for an arrow element, based on starting point, end point, width, direction, and color.
        Parameters:
        startX - X coordinate of the point where the arrow starts.
        startY - Y coodrinate of the point where the arrow starts.
        endX - X coordinate of the point where the arrow ends.
        endY - Y coordinate of the point where the arrow ends.
        width - width of the arrow line.
        direction - true is the arrow points from start to end, false if from end to start
        color - Color of the arrow