Class Rectangle2D

java.lang.Object
com.itextpdf.awt.geom.RectangularShape
com.itextpdf.awt.geom.Rectangle2D
All Implemented Interfaces:
Shape, Cloneable
Direct Known Subclasses:
Rectangle, Rectangle2D.Double, Rectangle2D.Float

public abstract class Rectangle2D extends RectangularShape
  • Field Details

  • Constructor Details

    • Rectangle2D

      protected Rectangle2D()
  • Method Details

    • setRect

      public abstract void setRect(double x, double y, double width, double height)
    • outcode

      public abstract int outcode(double x, double y)
    • createIntersection

      public abstract Rectangle2D createIntersection(Rectangle2D r)
    • createUnion

      public abstract Rectangle2D createUnion(Rectangle2D r)
    • setRect

      public void setRect(Rectangle2D r)
    • setFrame

      public void setFrame(double x, double y, double width, double height)
      Specified by:
      setFrame in class RectangularShape
    • getBounds2D

      public Rectangle2D getBounds2D()
    • intersectsLine

      public boolean intersectsLine(double x1, double y1, double x2, double y2)
    • intersectsLine

      public boolean intersectsLine(Line2D l)
    • outcode

      public int outcode(Point2D p)
    • contains

      public boolean contains(double x, double y)
    • intersects

      public boolean intersects(double x, double y, double width, double height)
    • contains

      public boolean contains(double x, double y, double width, double height)
    • intersect

      public static void intersect(Rectangle2D src1, Rectangle2D src2, Rectangle2D dst)
    • union

      public static void union(Rectangle2D src1, Rectangle2D src2, Rectangle2D dst)
    • add

      public void add(double x, double y)
    • add

      public void add(Point2D p)
    • add

      public void add(Rectangle2D r)
    • getPathIterator

      public PathIterator getPathIterator(AffineTransform t)
    • getPathIterator

      public PathIterator getPathIterator(AffineTransform t, double flatness)
      Specified by:
      getPathIterator in interface Shape
      Overrides:
      getPathIterator in class RectangularShape
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object