Class Iterator

java.lang.Object
org.luwrain.reader.view.Iterator

public final class Iterator extends Object
  • Field Details

    • view

      protected final View view
    • paragraphs

      protected final Paragraph[] paragraphs
    • rows

      protected final Row[] rows
    • current

      protected int current
  • Constructor Details

    • Iterator

      public Iterator(View view)
    • Iterator

      public Iterator(View view, int initialPos)
  • Method Details

    • noContent

      public boolean noContent()
    • getIndex

      public int getIndex()
    • getCount

      public int getCount()
    • getView

      public View getView()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • clone

      public Iterator clone()
      Overrides:
      clone in class Object
    • canMoveNext

      public boolean canMoveNext()
    • canMovePrev

      public boolean canMovePrev()
    • moveNext

      public boolean moveNext()
    • movePrev

      public boolean movePrev()
    • moveEnd

      public void moveEnd()
    • moveBeginning

      public void moveBeginning()
    • searchForward

      public boolean searchForward(Iterator.Matching matching)
    • searchForward

      public boolean searchForward(Iterator.Matching matching, int searchFrom)
    • searchBackward

      public boolean searchBackward(Iterator.Matching matching)
    • searchBackward

      public boolean searchBackward(Iterator.Matching matching, int searchFrom)
    • search

      protected boolean search(Iterator.Matching matching, int searchFrom, int step)
    • getText

      public String getText()
    • getIndexInParagraph

      public int getIndexInParagraph()
    • isParagraphBeginning

      public boolean isParagraphBeginning()
    • hasRunOnRow

      public boolean hasRunOnRow(Run run)
    • getRuns

      public Run[] getRuns()
    • runBeginsAt

      public int runBeginsAt(Run run)
    • getX

      public int getX()
    • getY

      public int getY()
    • getNode

      public Node getNode()
    • getParagraph

      public Paragraph getParagraph()
    • getParaContainer

      protected Node getParaContainer()
    • coversPos

      public boolean coversPos(int x, int y)
    • getRunUnderPos

      public Run getRunUnderPos(int pos)
    • getRow

      public Row getRow()
    • getFirstRunOfRow

      protected Run getFirstRunOfRow()