Package org.daisy.braille.pef
Class PEFHandler.Builder
java.lang.Object
org.daisy.braille.pef.PEFHandler.Builder
- Enclosing class:
- PEFHandler
Provides a Builder for PEFHandler
- Author:
- Joel HÃ¥kansson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionalign
(PEFHandler.Alignment value) Sets page alignment to use if the physical paper is bigger than the pagesbuild()
Builds a PEFHandler from this builder's current configuration.offset
(int value) Sets the page margin offset where positive numbers adjust towards the right side of the paper, and negative numbers adjust towards the left side.Sets the range of pages to outputtopOffset
(int value) Sets the top offset.
-
Constructor Details
-
Builder
Create a new PEFHandler builder- Parameters:
embosser
- the embosser writer to use
-
-
Method Details
-
range
Sets the range of pages to output -
align
Sets page alignment to use if the physical paper is bigger than the pages- Parameters:
value
- the value to use- Returns:
- returns this object
-
offset
Sets the page margin offset where positive numbers adjust towards the right side of the paper, and negative numbers adjust towards the left side.- Parameters:
value
- the offset- Returns:
- returns this object
-
topOffset
Sets the top offset. -
build
Builds a PEFHandler from this builder's current configuration.- Returns:
- returns a new PEFHandler
- Throws:
IOException
-