Package org.daisy.dotify.api.formatter
Class TableProperties
- java.lang.Object
-
- org.daisy.dotify.api.formatter.TableProperties
-
public final class TableProperties extends Object
Provides properties needed for a table. This class is immutable.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TableProperties.Builder
Provides a builder for creating table properties
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
Border
getBorder()
Gets the border, or null if not setBlockSpacing
getMargin()
Gets the marginBlockSpacing
getPadding()
Gets the paddingint
getPreferredEmtpySpace()
Gets the preferred empty space in table cells when the text content is shorter than the available maximum column widthFloat
getRowSpacing()
Gets the row spacing, or null if not set.int
getTableColSpacing()
Gets the table column spacing, in other words the horizontal spacing between two columns of table cells.int
getTableRowSpacing()
Gets the table row spacing, in other words the vertical spacing between two rows of table cells.int
hashCode()
-
-
-
Method Detail
-
getTableRowSpacing
public int getTableRowSpacing()
Gets the table row spacing, in other words the vertical spacing between two rows of table cells.- Returns:
- the table row spacing
-
getTableColSpacing
public int getTableColSpacing()
Gets the table column spacing, in other words the horizontal spacing between two columns of table cells.- Returns:
- the table column spacing
-
getPreferredEmtpySpace
public int getPreferredEmtpySpace()
Gets the preferred empty space in table cells when the text content is shorter than the available maximum column width- Returns:
- returns the number of character positions to leave empty
-
getRowSpacing
public Float getRowSpacing()
Gets the row spacing, or null if not set. This is the spacing between the output rows that are used to present the table.- Returns:
- returns the row spacing
-
getMargin
public BlockSpacing getMargin()
Gets the margin- Returns:
- returns the margin
-
getPadding
public BlockSpacing getPadding()
Gets the padding- Returns:
- returns the padding
-
getBorder
public Border getBorder()
Gets the border, or null if not set- Returns:
- returns the border
-
-