Package icyllis.modernui.graphics.text
Class LineBreakConfig.Builder
java.lang.Object
icyllis.modernui.graphics.text.LineBreakConfig.Builder
- Enclosing class:
LineBreakConfig
A builder for creating
LineBreakConfig
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build theLineBreakConfig
setLineBreakStyle
(int lineBreakStyle) Set the line break style.setLineBreakWordStyle
(int lineBreakWordStyle) Set the line break word style.
-
Constructor Details
-
Builder
public Builder()Builder constructor with line break parameters.
-
-
Method Details
-
setLineBreakStyle
Set the line break style.- Parameters:
lineBreakStyle
- the new line break style.- Returns:
- this Builder
-
setLineBreakWordStyle
Set the line break word style.- Parameters:
lineBreakWordStyle
- the new line break word style.- Returns:
- this Builder
-
build
Build theLineBreakConfig
- Returns:
- the LineBreakConfig instance.
-