Package org.daisy.dotify.api.formatter
Class BlockProperties
- java.lang.Object
-
- org.daisy.dotify.api.formatter.BlockProperties
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BlockProperties.Builder
The Builder is used when creating a BlockProperties instance.
-
Constructor Summary
Constructors Modifier Constructor Description protected
BlockProperties(BlockProperties.Builder builder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
clone()
boolean
equals(Object obj)
int
getBlockIndent()
Get block indent, in charactersFormattingTypes.BreakBefore
getBreakBeforeType()
Get break before typeString
getDefaultListLabel()
Gets the default list label for this listFormattingTypes.Keep
getKeepType()
Get keep typeint
getKeepWithNext()
Get the number of rows containing text in the next block that must be on the same page as this blockint
getKeepWithNextSheets()
Gets the number of next sheets to keep in the same volume as this blockint
getKeepWithPreviousSheets()
Gets the number of previous sheets to keep in the same volume as this blockString
getListItemLabel()
Gets the list item labelNumeralStyle
getListNumberFormat()
Gets the number format for this listFormattingTypes.ListStyle
getListType()
Get list typeBlockSpacing
getMargin()
Gets the marginint
getOrphans()
Gets the minimum number of lines of a paragraph that must be left at the bottom of a page.BlockSpacing
getPadding()
Gets the paddingTextBlockProperties
getTextBlockProperties()
Gets the text block properties for this blockTextBorderStyle
getTextBorderStyle()
Gets the text border style for this blockString
getUnderlineStyle()
Gets the underline pattern for this blockBlockPosition
getVerticalPosition()
Gets the vertical position for this blockInteger
getVolumeKeepPriority()
Gets volume keep priorityint
getWidows()
Gets the minimum number of lines of a paragraph that must be left at the top of a page.int
hashCode()
-
-
-
Constructor Detail
-
BlockProperties
protected BlockProperties(BlockProperties.Builder builder)
-
-
Method Detail
-
getMargin
public BlockSpacing getMargin()
Gets the margin- Returns:
- returns the margin
-
getPadding
public BlockSpacing getPadding()
Gets the padding- Returns:
- returns the padding
-
getBlockIndent
public int getBlockIndent()
Get block indent, in characters- Returns:
- returns the block indent
-
getVolumeKeepPriority
public Integer getVolumeKeepPriority()
Gets volume keep priority- Returns:
- returns the volume keep priority, or null if not set
-
getListType
public FormattingTypes.ListStyle getListType()
Get list type- Returns:
- returns the list type
-
getListNumberFormat
public NumeralStyle getListNumberFormat()
Gets the number format for this list- Returns:
- returns the number format
-
getDefaultListLabel
public String getDefaultListLabel()
Gets the default list label for this list- Returns:
- returns the default list label, or null if not set.
-
getListItemLabel
public String getListItemLabel()
Gets the list item label- Returns:
- returns the list item label
-
getBreakBeforeType
public FormattingTypes.BreakBefore getBreakBeforeType()
Get break before type- Returns:
- returns the break before type
-
getKeepType
public FormattingTypes.Keep getKeepType()
Get keep type- Returns:
- returns the keep type
-
getKeepWithNext
public int getKeepWithNext()
Get the number of rows containing text in the next block that must be on the same page as this block- Returns:
- returns the number of rows in the next block to keep with this block
-
getKeepWithPreviousSheets
public int getKeepWithPreviousSheets()
Gets the number of previous sheets to keep in the same volume as this block- Returns:
- returns the number of sheets
-
getKeepWithNextSheets
public int getKeepWithNextSheets()
Gets the number of next sheets to keep in the same volume as this block- Returns:
- returns the number of sheets
-
getVerticalPosition
public BlockPosition getVerticalPosition()
Gets the vertical position for this block- Returns:
- returns the vertical position
-
getTextBorderStyle
public TextBorderStyle getTextBorderStyle()
Gets the text border style for this block- Returns:
- returns the text border style
-
getUnderlineStyle
public String getUnderlineStyle()
Gets the underline pattern for this block- Returns:
- returns the underline pattern
-
getOrphans
public int getOrphans()
Gets the minimum number of lines of a paragraph that must be left at the bottom of a page.- Returns:
- returns the orphans
-
getWidows
public int getWidows()
Gets the minimum number of lines of a paragraph that must be left at the top of a page.- Returns:
- returns the widows
-
getTextBlockProperties
public TextBlockProperties getTextBlockProperties()
Gets the text block properties for this block- Returns:
- returns the text block properties
-
clone
public Object clone() throws CloneNotSupportedException
- Overrides:
clone
in classObject
- Throws:
CloneNotSupportedException
-
-