Class TextLayout

All Implemented Interfaces:
LayoutManager
Direct Known Subclasses:
ParagraphTextLayout, SimpleTextLayout

public abstract class TextLayout extends FlowFigureLayout
Since:
2.1
  • Constructor Details

    • TextLayout

      public TextLayout(TextFlow flow)
      Creates a new TextLayout with the given TextFlow
      Parameters:
      flow - The TextFlow
  • Method Details

    • getFragment

      protected TextFragmentBox getFragment(int i, List<TextFragmentBox> fragments)
      Reuses an existing TextFragmentBox, or creates a new one.
      Parameters:
      i - the index
      fragments - the original list of fragments
      Returns:
      a TextFragmentBox