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 classTextBlockProperties.BuilderProvides a builder for text block properties.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)FormattingTypes.AlignmentgetAlignment()Gets the alignment.intgetFirstLineIndent()Get first line indent, in characters.StringgetIdentifier()Gets the identifier.intgetRightLastLineIndent()Get right last line indent, in characters.intgetRightTextIndent()Get right text indent, in characters.FloatgetRowSpacing()Gets the row spacing, or null if not set.intgetTextIndent()Get text indent, in characters.inthashCode()
-
-
-
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
-
-