Package snap.text

Class TextRunIter

java.lang.Object
snap.text.TextRunIter

public class TextRunIter extends Object
This class iterates over TextBlock TextRuns.
  • Constructor Details

    • TextRunIter

      public TextRunIter(TextBlock textBlock, int startCharIndex, int endCharIndex, boolean trimEndRuns)
      Constructor.
  • Method Details

    • hasNextRun

      public boolean hasNextRun()
      Returns whether there is another run.
    • getNextRun

      public TextRun getNextRun()
      Returns the next run.
    • getLine

      public TextLine getLine()
      Returns the current line.
    • splitEndRuns

      public void splitEndRuns()
      Splits the end runs.