Class Line2D.Float

  • All Implemented Interfaces:
    Shape, java.lang.Cloneable
    Enclosing class:
    Line2D

    public static class Line2D.Float
    extends Line2D
    • Field Detail

      • x1

        public float x1
      • y1

        public float y1
      • x2

        public float x2
      • y2

        public float y2
    • Constructor Detail

      • Float

        public Float()
      • Float

        public Float​(float x1,
                     float y1,
                     float x2,
                     float y2)
    • Method Detail

      • getX1

        public double getX1()
        Specified by:
        getX1 in class Line2D
      • getY1

        public double getY1()
        Specified by:
        getY1 in class Line2D
      • getX2

        public double getX2()
        Specified by:
        getX2 in class Line2D
      • getY2

        public double getY2()
        Specified by:
        getY2 in class Line2D
      • setLine

        public void setLine​(double x1,
                            double y1,
                            double x2,
                            double y2)
        Specified by:
        setLine in class Line2D
      • setLine

        public void setLine​(float x1,
                            float y1,
                            float x2,
                            float y2)