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 classBlockProperties.BuilderThe Builder is used when creating a BlockProperties instance.
-
Constructor Summary
Constructors Modifier Constructor Description protectedBlockProperties(BlockProperties.Builder builder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectclone()booleanequals(Object obj)intgetBlockIndent()Get block indent, in charactersFormattingTypes.BreakBeforegetBreakBeforeType()Get break before typeStringgetDefaultListLabel()Gets the default list label for this listFormattingTypes.KeepgetKeepType()Get keep typeintgetKeepWithNext()Get the number of rows containing text in the next block that must be on the same page as this blockintgetKeepWithNextSheets()Gets the number of next sheets to keep in the same volume as this blockintgetKeepWithPreviousSheets()Gets the number of previous sheets to keep in the same volume as this blockStringgetListItemLabel()Gets the list item labelNumeralStylegetListNumberFormat()Gets the number format for this listFormattingTypes.ListStylegetListType()Get list typeBlockSpacinggetMargin()Gets the marginintgetOrphans()Gets the minimum number of lines of a paragraph that must be left at the bottom of a page.BlockSpacinggetPadding()Gets the paddingTextBlockPropertiesgetTextBlockProperties()Gets the text block properties for this blockTextBorderStylegetTextBorderStyle()Gets the text border style for this blockStringgetUnderlineStyle()Gets the underline pattern for this blockBlockPositiongetVerticalPosition()Gets the vertical position for this blockIntegergetVolumeKeepPriority()Gets volume keep priorityintgetWidows()Gets the minimum number of lines of a paragraph that must be left at the top of a page.inthashCode()
-
-
-
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:
clonein classObject- Throws:
CloneNotSupportedException
-
-