public class TextBlock extends LineSegment
| Modifier and Type | Field and Description |
|---|---|
ArrayList<Paragraph> |
content
This is the actual content of the TextBlock.
|
begin, end| Constructor and Description |
|---|
TextBlock() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
double |
getRelativeFontSize()
The font size of this TextBlocks content relative to the page-wide
average.
|
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 |
setRelativeFontSize(double relativeFontSize)
The font size of this TextBlocks content relative to the page-wide
average.
|
String |
toString()
Converts this object to a string by going recursively through the
underlying paragraph structure and calling their respective toString
methods.
|
String |
toXML()
Returns a XML representation of this block by going recursively
through the underlying paragraph structure and calling their respective
toXML methods.
|
boundariesEqual, boundariesEqual, getBegin, getEnd, intersection, isValid, isValid, length, length, normalize, normalize, normalizedBounds, overlaps, overlaps, setBegin, setEnd, unionpublic double getRelativeFontSize()
public void setRelativeFontSize(double relativeFontSize)
relativeFontSize - the font size of this TextBlocks content relative
to the page-wide average.public 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.