public class Page extends LineSegment
| Modifier and Type | Field and Description |
|---|---|
ArrayList<TextBlock> |
content |
begin, end| Constructor and Description |
|---|
Page() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
getPageNumber()
Get the value of pageNumber
|
int |
hashCode() |
String |
indexedToString(int currentIdx)
Does the same as toString but also inserts the beginning and end index of
each objects respective text representation to this objects
attributes (which is retrievable by getBegin and getEnd).
|
void |
setPageNumber(int pageNumber)
Set the value of pageNumber
|
String |
toString()
Converts this object to a string by going recursively through the
underlying block structure and calling their respective toString
methods.
|
String |
toXML()
Returns a XML representation of this page by going recursively
through the underlying block structure and calling their respective toXML
methods.
|
boundariesEqual, boundariesEqual, getBegin, getEnd, intersection, isValid, isValid, length, length, normalize, normalize, normalizedBounds, overlaps, overlaps, setBegin, setEnd, unionpublic int getPageNumber()
public void setPageNumber(int pageNumber)
pageNumber - new value of pageNumberpublic String toString()
public String indexedToString(int currentIdx)
currentIdx - the current index in the plain text representation.
If you are calling this as a user you should insert 0 here.public String toXML()
Copyright © 2014. All rights reserved.