public class Paragraph extends LineSegment
| Modifier and Type | Field and Description |
|---|---|
ArrayList<Text> |
content
This is the Text content of this Paragraph.
|
begin, end| Constructor and Description |
|---|
Paragraph() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
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).
|
String |
toString()
Converts this object to a string by going recursively through the
underlying text objects and calling their respective toString
methods.
|
String |
toXML()
Returns a XML representation of this paragraph by going recursively
through the underlying text objects and calling their respective toXML
methods.
|
boundariesEqual, boundariesEqual, getBegin, getEnd, intersection, isValid, isValid, length, length, normalize, normalize, normalizedBounds, overlaps, overlaps, setBegin, setEnd, unionpublic 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.