Package com.itextpdf.layout.layout
Class LayoutArea
- java.lang.Object
-
- com.itextpdf.layout.layout.LayoutArea
-
- All Implemented Interfaces:
java.lang.Cloneable
- Direct Known Subclasses:
RootLayoutArea
public class LayoutArea extends java.lang.Object implements java.lang.Cloneable
Represents the area for contentlayouting
.
-
-
Field Summary
Fields Modifier and Type Field Description protected Rectangle
bBox
The area's bounding boxprotected int
pageNumber
The number of page on which the area is located.
-
Constructor Summary
Constructors Constructor Description LayoutArea(int pageNumber, Rectangle bBox)
Creates the area for contentlayouting
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LayoutArea
clone()
Creates a "deep copy" of this LayoutArea, meaning the object returned by this method will be independent of the object being cloned.boolean
equals(java.lang.Object obj)
Rectangle
getBBox()
Gets thebox
which bounds the area.int
getPageNumber()
Gets the number of page on which the area is located.int
hashCode()
void
setBBox(Rectangle bbox)
Sets thebox
which bounds the area.java.lang.String
toString()
-
-
-
Field Detail
-
pageNumber
protected int pageNumber
The number of page on which the area is located.
-
bBox
protected Rectangle bBox
The area's bounding box
-
-
Method Detail
-
getPageNumber
public int getPageNumber()
Gets the number of page on which the area is located.- Returns:
- page number
-
setBBox
public void setBBox(Rectangle bbox)
Sets thebox
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 classjava.lang.Object
- Returns:
- the copied LayoutArea.
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-