Package org.daisy.dotify.api.formatter
Class BlockSpacing.Builder
- java.lang.Object
-
- org.daisy.dotify.api.formatter.BlockSpacing.Builder
-
- Enclosing class:
- BlockSpacing
public static final class BlockSpacing.Builder extends Object
Provides a builder for block spacing.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BlockSpacing.Builder
bottomSpacing(int bottomSpacing)
Set the bottom spacing for the block, in characters.BlockSpacing
build()
Build BlockSpacing using the current state of the Builder.BlockSpacing.Builder
leftSpacing(int leftSpacing)
Set the left spacing for the block, in characters.BlockSpacing.Builder
rightSpacing(int rightSpacing)
Set the right spacing for the block, in characters.BlockSpacing.Builder
topSpacing(int topSpacing)
Set the top spacing for the block, in characters.
-
-
-
Method Detail
-
leftSpacing
public BlockSpacing.Builder leftSpacing(int leftSpacing)
Set the left spacing for the block, in characters.- Parameters:
leftSpacing
- left spacing, in characters- Returns:
- returns "this" object
-
rightSpacing
public BlockSpacing.Builder rightSpacing(int rightSpacing)
Set the right spacing for the block, in characters.- Parameters:
rightSpacing
- right spacing, in characters- Returns:
- returns "this" object
-
topSpacing
public BlockSpacing.Builder topSpacing(int topSpacing)
Set the top spacing for the block, in characters.- Parameters:
topSpacing
- top spacing, in characters- Returns:
- returns "this" object
-
bottomSpacing
public BlockSpacing.Builder bottomSpacing(int bottomSpacing)
Set the bottom spacing for the block, in characters.- Parameters:
bottomSpacing
- bottom spacing, in characters- Returns:
- returns "this" object
-
build
public BlockSpacing build()
Build BlockSpacing using the current state of the Builder.- Returns:
- returns a new BlockSpacing instance
-
-