Class Quad

java.lang.Object
com.datalogics.PDFL.Quad

public class Quad extends Object
Represents a quadrilateral in a program. A quadrilateral is a polygon graphic that has four sides or edges and four corners, Bottom Left, Bottom Right, Top Left, and Top Right.
  • Constructor Details

    • Quad

      public Quad()
      Creates a Quad with all points at the origin.
    • Quad

      public Quad(Point nTopLeft, Point nTopRight, Point nBottomLeft, Point nBottomRight)
      Creates a Quad from a set of 4 points.
  • Method Details

    • delete

      public void delete()
    • equals

      public boolean equals(Object rhs)
      Overrides:
      equals in class Object
    • getTopLeft

      public Point getTopLeft()
      Top left corner of the Quad.
    • getTopRight

      public Point getTopRight()
      Top right corner of the Quad.
    • getBottomLeft

      public Point getBottomLeft()
      Bottom left corner of the Quad.
    • getBottomRight

      public Point getBottomRight()
      Bottom right corner of the Quad.
    • transform

      public Quad transform(Matrix arg0)
      Create a new quad from the results of a Transform on each point of the Quad.
    • toString

      public String toString()
      Returns a string representation of the quad by calling each point's ToString function.
      Overrides:
      toString in class Object
    • toRect

      public Rect toRect()
      Returns a rectangle describing the same area as the quad.