Class View

java.lang.Object
org.luwrain.controls.reader.view.View

public class View extends Object
  • Field Details

    • DEFAULT_ITERATOR_INDEX_PROPERTY

      public static final String DEFAULT_ITERATOR_INDEX_PROPERTY
      See Also:
    • doc

      protected final Document doc
    • root

      protected final Node root
    • paragraphs

      protected final Paragraph[] paragraphs
    • rowParts

      protected final org.luwrain.controls.reader.view.RowPart[] rowParts
    • rows

      protected final Row[] rows
    • lineCount

      protected final int lineCount
  • Constructor Details

    • View

      public View(Document doc, int width)
  • Method Details

    • createLayout

      public Layout createLayout()
    • calcAbsRowNums

      protected void calcAbsRowNums(org.luwrain.controls.reader.view.RowPart[] parts)
    • buildRows

      protected static Row[] buildRows(org.luwrain.controls.reader.view.RowPart[] parts)
    • calcRowsPosition

      protected int calcRowsPosition(Row[] rows)
    • getIterator

      public Iterator getIterator()
    • getIterator

      public Iterator getIterator(int startingIndex)
    • getParagraphLines

      public static String[] getParagraphLines(Paragraph para, int width)