Class LineBreakConfig.Builder

java.lang.Object
icyllis.modernui.graphics.text.LineBreakConfig.Builder
Enclosing class:
LineBreakConfig

public static final class LineBreakConfig.Builder extends Object
A builder for creating LineBreakConfig.
  • Constructor Details

    • Builder

      public Builder()
      Builder constructor with line break parameters.
  • Method Details

    • setLineBreakStyle

      @NonNull public LineBreakConfig.Builder setLineBreakStyle(int lineBreakStyle)
      Set the line break style.
      Parameters:
      lineBreakStyle - the new line break style.
      Returns:
      this Builder
    • setLineBreakWordStyle

      @NonNull public LineBreakConfig.Builder setLineBreakWordStyle(int lineBreakWordStyle)
      Set the line break word style.
      Parameters:
      lineBreakWordStyle - the new line break word style.
      Returns:
      this Builder
    • build

      @NonNull public LineBreakConfig build()
      Build the LineBreakConfig
      Returns:
      the LineBreakConfig instance.