Class RectangularShape

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

public abstract class RectangularShape extends Object implements Shape, Cloneable
  • Constructor Details

    • RectangularShape

      protected RectangularShape()
  • Method Details

    • getX

      public abstract double getX()
    • getY

      public abstract double getY()
    • getWidth

      public abstract double getWidth()
    • getHeight

      public abstract double getHeight()
    • isEmpty

      public abstract boolean isEmpty()
    • setFrame

      public abstract void setFrame(double x, double y, double w, double h)
    • getMinX

      public double getMinX()
    • getMinY

      public double getMinY()
    • getMaxX

      public double getMaxX()
    • getMaxY

      public double getMaxY()
    • getCenterX

      public double getCenterX()
    • getCenterY

      public double getCenterY()
    • getFrame

      public Rectangle2D getFrame()
    • setFrame

      public void setFrame(Point2D loc, Dimension2D size)
    • setFrame

      public void setFrame(Rectangle2D r)
    • setFrameFromDiagonal

      public void setFrameFromDiagonal(double x1, double y1, double x2, double y2)
    • setFrameFromDiagonal

      public void setFrameFromDiagonal(Point2D p1, Point2D p2)
    • setFrameFromCenter

      public void setFrameFromCenter(double centerX, double centerY, double cornerX, double cornerY)
    • setFrameFromCenter

      public void setFrameFromCenter(Point2D center, Point2D corner)
    • contains

      public boolean contains(Point2D point)
      Specified by:
      contains in interface Shape
    • intersects

      public boolean intersects(Rectangle2D rect)
      Specified by:
      intersects in interface Shape
    • contains

      public boolean contains(Rectangle2D rect)
      Specified by:
      contains in interface Shape
    • getBounds

      public Rectangle getBounds()
      Specified by:
      getBounds in interface Shape
    • getPathIterator

      public PathIterator getPathIterator(AffineTransform t, double flatness)
      Specified by:
      getPathIterator in interface Shape
    • clone

      public Object clone()
      Overrides:
      clone in class Object