Class LineElement

    • Field Detail

      • firstPointX

        public final double firstPointX
        The x-coordinate of the first point.
      • firstPointY

        public final double firstPointY
        The y-coordinate of the first point.
      • secondPointX

        public final double secondPointX
        The x-coordinate of the second point.
      • secondPointY

        public final double secondPointY
        The y-coordinate of the second point.
      • width

        public final double width
        The width of the line.
      • color

        public final Color color
        The color of the line.
    • Constructor Detail

      • LineElement

        public LineElement​(double firstPointX,
                           double firstPointY,
                           double secondPointX,
                           double secondPointY,
                           double width,
                           Color color)
        Make a line element.
        Parameters:
        firstPointX - x-coordinate of the first point
        firstPointY - y-coordinate of the first point
        secondPointX - x-coordinate of the second point
        secondPointY - y-coordinate of the second point
        width - the width of the line
        color - the color of the line