public static class LayoutMasterProperties.Builder extends Object
Constructor and Description |
---|
Builder(int pageWidth,
int pageHeight)
Creates a new builder for layout master properties with the specified
width and height.
|
Modifier and Type | Method and Description |
---|---|
LayoutMasterProperties.Builder |
border(TextBorderStyle border)
Sets a border surrounding the entire page.
|
LayoutMasterProperties |
build()
Creates a new LayoutMasterProperties based on the current
state of the builder.
|
LayoutMasterProperties.Builder |
duplex(boolean value)
Sets the duplex property, in other words whether to use
both sides of a sheet or not.
|
LayoutMasterProperties.Builder |
innerMargin(int value)
Sets the inner margin, that is to say the margin closest
to the binding edge of the page.
|
LayoutMasterProperties.Builder |
outerMargin(int value)
Sets the outer margin, that is to say the margin opposite
to the binding edge of the page.
|
LayoutMasterProperties.Builder |
rowSpacing(float value)
Sets the row spacing, that is to say the distance between two
consecutive rows of text.
|
public Builder(int pageWidth, int pageHeight)
pageWidth
- the page width, in characterspageHeight
- the page height, in characterspublic LayoutMasterProperties.Builder innerMargin(int value)
value
- the inner margin, in characterspublic LayoutMasterProperties.Builder outerMargin(int value)
value
- the outer margin, in characterspublic LayoutMasterProperties.Builder rowSpacing(float value)
value
- the row spacing, in character heightsIllegalArgumentException
- if the value is <1public LayoutMasterProperties.Builder duplex(boolean value)
value
- the valuepublic LayoutMasterProperties.Builder border(TextBorderStyle border)
border
- the borderpublic LayoutMasterProperties build()