Package icyllis.modernui.graphics.text

# 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 Summary

  Constructors
  Constructor
  Description
  `Builder()`
  Builder constructor with line break parameters.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `LineBreakConfig`
  `build()`
  Build the `LineBreakConfig`
  `LineBreakConfig.Builder`
  `setLineBreakStyle(int lineBreakStyle)`
  Set the line break style.
  `LineBreakConfig.Builder`
  `setLineBreakWordStyle(int lineBreakWordStyle)`
  Set the line break word style.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 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.