Package org.daisy.dotify.api.formatter
Class BlockPosition
- java.lang.Object
-
- org.daisy.dotify.api.formatter.BlockPosition
-
public class BlockPosition extends Object
Positions a block of text at a specified row.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBlockPosition.BuilderUsed when creating BlockPosition instances.static classBlockPosition.VerticalAlignmentBlock alignment.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)BlockPosition.VerticalAlignmentgetAlignment()Get the alignment center for the block that this object positions.PositiongetPosition()Gets the row for the block that this object positions.inthashCode()
-
-
-
Method Detail
-
getPosition
public Position getPosition()
Gets the row for the block that this object positions. 0 is the first row.- Returns:
- returns the position
-
getAlignment
public BlockPosition.VerticalAlignment getAlignment()
Get the alignment center for the block that this object positions.- Returns:
- returns the alignment center
-
-