Class ParagraphTextLayout

All Implemented Interfaces:
LayoutManager

public class ParagraphTextLayout extends TextLayout
The layout for TextFlow.
Since:
2.1
  • Field Details

    • WORD_WRAP_HARD

      public static final int WORD_WRAP_HARD
      Wrapping will ONLY occur at valid line breaks
      See Also:
    • WORD_WRAP_SOFT

      public static final int WORD_WRAP_SOFT
      Wrapping will always occur at the end of the available space, breaking in the middle of a word.
      See Also:
    • WORD_WRAP_TRUNCATE

      public static final int WORD_WRAP_TRUNCATE
      Wrapping will always occur at the end of available space, truncating a word if it doesn't fit. Note that truncation is not supported across multiple figures and with BiDi. Undesired effects may result if that is the case.
      See Also:
  • Constructor Details

    • ParagraphTextLayout

      public ParagraphTextLayout(TextFlow flow)
      Constructs a new ParagraphTextLayout on the specified TextFlow.
      Parameters:
      flow - the TextFlow
    • ParagraphTextLayout

      public ParagraphTextLayout(TextFlow flow, int style)
      Constructs the layout with the specified TextFlow and wrapping style. The wrapping style must be one of:
      Parameters:
      flow - the textflow
      style - the style of wrapping
  • Method Details