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.CloneableRepresents the area for contentlayouting.
-
-
Field Summary
Fields Modifier and Type Field Description protected RectanglebBoxThe area's bounding boxprotected intpageNumberThe 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 LayoutAreaclone()Creates a "deep copy" of this LayoutArea, meaning the object returned by this method will be independent of the object being cloned.booleanequals(java.lang.Object obj)RectanglegetBBox()Gets theboxwhich bounds the area.intgetPageNumber()Gets the number of page on which the area is located.inthashCode()voidsetBBox(Rectangle bbox)Sets theboxwhich bounds the area.java.lang.StringtoString()
-
-
-
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 theboxwhich 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:
clonein classjava.lang.Object- Returns:
- the copied LayoutArea.
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-