Class Line2D.Float

java.lang.Object
com.itextpdf.awt.geom.Line2D
com.itextpdf.awt.geom.Line2D.Float
All Implemented Interfaces:
Shape, Cloneable
Enclosing class:
Line2D

public static class Line2D.Float extends Line2D
  • Field Details

    • x1

      public float x1
    • y1

      public float y1
    • x2

      public float x2
    • y2

      public float y2
  • Constructor Details

    • Float

      public Float()
    • Float

      public Float(float x1, float y1, float x2, float y2)
    • Float

      public Float(Point2D p1, Point2D p2)
  • Method Details

    • 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
    • getP1

      public Point2D getP1()
      Specified by:
      getP1 in class Line2D
    • getP2

      public Point2D getP2()
      Specified by:
      getP2 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)
    • getBounds2D

      public Rectangle2D getBounds2D()