Class LineProperties.Builder
- java.lang.Object
-
- org.daisy.dotify.formatter.impl.row.LineProperties.Builder
-
- Enclosing class:
- LineProperties
public static final class LineProperties.Builder extends Object
Provides a builder of line properties.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Creates a new empty builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LineProperties
build()
Creates a newLineProperties
with the current settings.LineProperties.Builder
lineBlockLocation(BlockLineLocation value)
LineProperties.Builder
reservedWidth(int value)
Reserves a number of characters on a line.LineProperties.Builder
suppressHyphenation(boolean value)
Suppresses hyphenation on a line.
-
-
-
Method Detail
-
suppressHyphenation
public LineProperties.Builder suppressHyphenation(boolean value)
Suppresses hyphenation on a line.- Parameters:
value
- true if hyphenation should be suppressed, false otherwise.- Returns:
- this builder
-
reservedWidth
public LineProperties.Builder reservedWidth(int value)
Reserves a number of characters on a line.- Parameters:
value
- the number of characters to reserve.- Returns:
- this builder
-
lineBlockLocation
public LineProperties.Builder lineBlockLocation(BlockLineLocation value)
-
build
public LineProperties build()
Creates a newLineProperties
with the current settings.- Returns:
- a new line properties instance.
-
-