Package com.itextpdf.layout.layout
Class RootLayoutArea
- java.lang.Object
-
- com.itextpdf.layout.layout.LayoutArea
-
- com.itextpdf.layout.layout.RootLayoutArea
-
- All Implemented Interfaces:
java.lang.Cloneable
public class RootLayoutArea extends LayoutArea implements java.lang.Cloneable
Represents the root layout area.
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
emptyArea
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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LayoutArea
clone()
Creates a "deep copy" of this RootLayoutArea, meaning the object returned by this method will be independent of the object being cloned.boolean
isEmptyArea()
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
-
-
-
-
Constructor Detail
-
RootLayoutArea
public RootLayoutArea(int pageNumber, Rectangle bBox)
Creates the root layout area.- Parameters:
pageNumber
- the value number of pagebBox
- the bounding box
-
-
Method Detail
-
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 isLayoutArea
, the actual type of the returned object isRootLayoutArea
.- Overrides:
clone
in classLayoutArea
- Returns:
- the copied RootLayoutArea.
-
-