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<TextUnit> |
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<TextUnit> getTextUnits()
TextUnit
s held by this Line. This List is guaranteed
to provide efficient random access.void pipe(OutputHandler tgt)
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.