Package org.daisy.dotify.api.formatter
Class BlockPosition.Builder
- java.lang.Object
-
- org.daisy.dotify.api.formatter.BlockPosition.Builder
-
- Enclosing class:
- BlockPosition
public static class BlockPosition.Builder extends Object
Used when creating BlockPosition instances.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Creates a new Builder with TOP alignment at the absolute position of 0.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BlockPosition.Builder
align(BlockPosition.VerticalAlignment align)
Sets the vertical alignment of the block, that is to say the row within the block that will be at the specified position.BlockPosition
build()
Creates a new BlockPosition instance.BlockPosition.Builder
position(Position pos)
Sets the vertical position of the block, 0 is the first row.
-
-
-
Method Detail
-
position
public BlockPosition.Builder position(Position pos)
Sets the vertical position of the block, 0 is the first row.- Parameters:
pos
- the position where the block should be positioned- Returns:
- returns this Builder
-
align
public BlockPosition.Builder align(BlockPosition.VerticalAlignment align)
Sets the vertical alignment of the block, that is to say the row within the block that will be at the specified position.- Parameters:
align
- the alignment- Returns:
- returns this Builder
-
build
public BlockPosition build()
Creates a new BlockPosition instance.- Returns:
- returns a new BlockPosition instance
-
-