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 class
BlockPosition.Builder
Used when creating BlockPosition instances.static class
BlockPosition.VerticalAlignment
Block alignment
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
BlockPosition.VerticalAlignment
getAlignment()
Get the alignment center for the block that this object positionsPosition
getPosition()
Gets the row for the block that this object positions.int
hashCode()
-
-
-
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
-
-