Modifier and Type | Method and Description |
---|---|
TextUnit |
getTextUnit(int idx)
Returns the
TextUnit at the specified index. |
int |
getTextUnitCnt()
Returns the number of
TextUnit s in this Line. |
java.util.List |
getTextUnits()
Returns a List view of the
TextUnit s held by this Line. |
void |
pipe(OutputHandler tgt)
Sends all text events associated with this Line to the given
OutputHandler . |
TextUnit |
remove(int idx)
Removes the
TextUnit at the specified index, and returns it. |
int getTextUnitCnt()
TextUnit
s in this Line.java.util.List getTextUnits()
TextUnit
s held by this Line. This List is guaranteed
to provide efficient random access.void pipe(OutputHandler tgt) throws java.io.IOException
OutputHandler
. Note that
Line objects will not send any linebreaks to any OutputHandler
passed to this function;
only Block
objects are able to calculate linebreak counts between lines.tgt
- - the destination for all contents of this Linejava.io.IOException