Package com.itextpdf.layout.layout
Class RootLayoutArea
java.lang.Object
com.itextpdf.layout.layout.LayoutArea
com.itextpdf.layout.layout.RootLayoutArea
- All Implemented Interfaces:
-
Cloneable
Represents the root layout area.
-
Field Summary
Modifier and TypeFieldDescriptionprotected 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
ConstructorDescriptionRootLayoutArea
(int pageNumber, Rectangle bBox) Creates the root layout area. -
Method Summary
Modifier and TypeMethodDescriptionclone()
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
-
Field Details
-
emptyArea
protected boolean emptyAreaIndicates whether the area already has some placed content or not.
-
-
Constructor Details
-
RootLayoutArea
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
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 isLayoutArea
, the actual type of the returned object isRootLayoutArea
.- Overrides:
-
clone
in classLayoutArea
- Returns:
- the copied RootLayoutArea.
-