Package org.daisy.dotify.api.formatter
Class PageAreaProperties.Builder
- java.lang.Object
-
- org.daisy.dotify.api.formatter.PageAreaProperties.Builder
-
- Enclosing class:
- PageAreaProperties
public static class PageAreaProperties.Builder extends Object
Creates a new page area properties builder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PageAreaProperties.Builder
addFallback(FallbackRule rule)
Adds a fallback rule.PageAreaProperties.Builder
align(PageAreaProperties.Alignment value)
Sets the alignment of the page area on the page.PageAreaProperties
build()
Creates a new page area properties object
-
-
-
Constructor Detail
-
Builder
public Builder(String collectionId, int maxHeight)
Creates a new instance with the specified parameters- Parameters:
collectionId
- an identifier of the collection used for this page areamaxHeight
- the maximum height of this page area
-
-
Method Detail
-
align
public PageAreaProperties.Builder align(PageAreaProperties.Alignment value)
Sets the alignment of the page area on the page.- Parameters:
value
- the alignment- Returns:
- returns this builder
-
addFallback
public PageAreaProperties.Builder addFallback(FallbackRule rule)
Adds a fallback rule.- Parameters:
rule
- the rule- Returns:
- returns this builder
-
build
public PageAreaProperties build()
Creates a new page area properties object- Returns:
- returns a new page area properties instance
-
-