Package org.daisy.dotify.api.formatter
Class TextBlockProperties
- java.lang.Object
-
- org.daisy.dotify.api.formatter.TextBlockProperties
-
public final class TextBlockProperties extends Object
Provides text block properties. This class is immutable.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TextBlockProperties.Builder
Provides a builder for text block properties.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
FormattingTypes.Alignment
getAlignment()
Gets the alignment.int
getFirstLineIndent()
Get first line indent, in characters.String
getIdentifier()
Gets the identifier.int
getRightLastLineIndent()
Get right last line indent, in characters.int
getRightTextIndent()
Get right text indent, in characters.Float
getRowSpacing()
Gets the row spacing, or null if not set.int
getTextIndent()
Get text indent, in characters.int
hashCode()
-
-
-
Method Detail
-
getTextIndent
public int getTextIndent()
Get text indent, in characters.- Returns:
- returns the text indent
-
getFirstLineIndent
public int getFirstLineIndent()
Get first line indent, in characters.- Returns:
- returns the first line indent
-
getRightTextIndent
public int getRightTextIndent()
Get right text indent, in characters.- Returns:
- returns the right text indent
-
getRightLastLineIndent
public int getRightLastLineIndent()
Get right last line indent, in characters.- Returns:
- returns the right last line indent
-
getAlignment
public FormattingTypes.Alignment getAlignment()
Gets the alignment.- Returns:
- returns the alignment
-
getIdentifier
public String getIdentifier()
Gets the identifier.- Returns:
- returns the identifier
-
getRowSpacing
public Float getRowSpacing()
Gets the row spacing, or null if not set.- Returns:
- returns the row spacing
-
-