Class LayoutArea

java.lang.Object
com.itextpdf.layout.layout.LayoutArea
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
RootLayoutArea

public class LayoutArea extends Object implements Cloneable
Represents the area for content layouting.
  • Field Details

    • pageNumber

      protected int pageNumber
      The number of page on which the area is located.
    • bBox

      protected Rectangle bBox
      The area's bounding box
  • Constructor Details

    • LayoutArea

      public LayoutArea (int pageNumber, Rectangle bBox)
      Creates the area for content layouting.
      Parameters:
      pageNumber - the number of page on which the area is located.
      bBox - the area's bounding box
  • Method Details

    • getPageNumber

      public int getPageNumber()
      Gets the number of page on which the area is located.
      Returns:
      page number
    • getBBox

      public Rectangle getBBox()
      Gets the box which bounds the area.
      Returns:
      the bounding box
    • setBBox

      public void setBBox (Rectangle bbox)
      Sets the box which bounds the area.
      Parameters:
      bbox - the area's bounding box
    • clone

      public LayoutArea clone()
      Creates a "deep copy" of this LayoutArea, meaning the object returned by this method will be independent of the object being cloned.
      Overrides:
      clone in class Object
      Returns:
      the copied LayoutArea.
    • equals

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

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

      public String toString()
      Overrides:
      toString in class Object