public static class FormatterConfiguration.Builder extends Object
Constructor and Description |
---|
Builder(String locale,
String mode)
Creates a new builder with the specified properties
|
Modifier and Type | Method and Description |
---|---|
FormatterConfiguration.Builder |
allowsEndingVolumeOnHyphen(boolean value)
Sets the hyphenation policy for the last line (of the main flow) in each volume.
|
FormatterConfiguration.Builder |
allowsTextOverflowTrimming(boolean value)
Sets the text overflow trimming policy.
|
FormatterConfiguration |
build()
Creates new configuration
|
FormatterConfiguration.Builder |
hyphenate(boolean value)
Sets the global hyphenation policy
|
FormatterConfiguration.Builder |
ignoreStyle(String style)
Adds a style to ignore
|
FormatterConfiguration.Builder |
markCapitalLetters(boolean value)
Sets the global capital letter policy
|
public FormatterConfiguration.Builder allowsTextOverflowTrimming(boolean value)
value
- the value of the text overflow trimming policypublic FormatterConfiguration.Builder allowsEndingVolumeOnHyphen(boolean value)
value
- true if the last line may be hyphenated, false otherwise.public FormatterConfiguration.Builder hyphenate(boolean value)
value
- the value of the global hyphenation policypublic FormatterConfiguration.Builder markCapitalLetters(boolean value)
value
- the value of the capital letters policypublic FormatterConfiguration.Builder ignoreStyle(String style)
style
- a style to ignorepublic FormatterConfiguration build()