Class RootLayoutArea

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

public class RootLayoutArea extends LayoutArea implements Cloneable
Represents the root layout area.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected boolean
    Indicates whether the area already has some placed content or not.

    Fields inherited from class com.itextpdf.layout.layout.LayoutArea

    bBox, pageNumber
  • Constructor Summary

    Constructors
    Constructor
    Description
    RootLayoutArea(int pageNumber, Rectangle bBox)
    Creates the root layout area.
  • Method Summary

    Modifier and Type
    Method
    Description
    clone()
    Creates a "deep copy" of this RootLayoutArea, meaning the object returned by this method will be independent of the object being cloned.
    boolean
    Indicates whether the area already has some placed content or not.
    void
    setEmptyArea(boolean emptyArea)
    Defines whether the area already has some placed content or not.

    Methods inherited from class com.itextpdf.layout.layout.LayoutArea

    equals, getBBox, getPageNumber, hashCode, setBBox, toString

    Methods inherited from class java.lang.Object

    finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • emptyArea

      protected boolean emptyArea
      Indicates whether the area already has some placed content or not.
  • Constructor Details

    • RootLayoutArea

      public RootLayoutArea (int pageNumber, Rectangle bBox)
      Creates the root layout area.
      Parameters:
      pageNumber - the value number of page
      bBox - the bounding box
  • Method Details

    • isEmptyArea

      public boolean isEmptyArea()
      Indicates whether the area already has some placed content or not.
      Returns:
      whether the area is empty or not
    • setEmptyArea

      public void setEmptyArea (boolean emptyArea)
      Defines whether the area already has some placed content or not.
      Parameters:
      emptyArea - indicates whether the area already has some placed content or not.
    • clone

      public LayoutArea clone()
      Creates a "deep copy" of this RootLayoutArea, meaning the object returned by this method will be independent of the object being cloned. Note that although the return type of this method is LayoutArea, the actual type of the returned object is RootLayoutArea.
      Overrides:
      clone in class LayoutArea
      Returns:
      the copied RootLayoutArea.