Package snap.text
Class TextRunIter
java.lang.Object
snap.text.TextRunIter
This class iterates over TextBlock TextRuns.
-
Constructor Summary
ConstructorDescriptionTextRunIter
(TextBlock textBlock, int startCharIndex, int endCharIndex, boolean trimEndRuns) Constructor. -
Method Summary
Modifier and TypeMethodDescriptiongetLine()
Returns the current line.Returns the next run.boolean
Returns whether there is another run.void
Splits the end runs.
-
Constructor Details
-
TextRunIter
Constructor.
-
-
Method Details
-
hasNextRun
public boolean hasNextRun()Returns whether there is another run. -
getNextRun
Returns the next run. -
getLine
Returns the current line. -
splitEndRuns
public void splitEndRuns()Splits the end runs.
-