Class SimpleEmbosserProperties.Builder
- java.lang.Object
-
- org.daisy.braille.utils.impl.tools.embosser.SimpleEmbosserProperties.Builder
-
- Enclosing class:
- SimpleEmbosserProperties
public static class SimpleEmbosserProperties.Builder extends Object
Provides a builder for simple embosser properties.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SimpleEmbosserPropertiesbuild()Creates a new instance ofSimpleEmbosserPropertiesbased on the current state of the builder.SimpleEmbosserProperties.BuildercellHeight(double val)Sets the value of cell height.SimpleEmbosserProperties.BuildercellWidth(double val)Sets the value of cell width.SimpleEmbosserProperties.BuildersupportsAligning(boolean val)Sets the value of aligning support.SimpleEmbosserProperties.BuildersupportsDuplex(boolean val)Sets the value of duplex support.
-
-
-
Method Detail
-
supportsDuplex
public SimpleEmbosserProperties.Builder supportsDuplex(boolean val)
Sets the value of duplex support.- Parameters:
val- the new value- Returns:
- returns this object
-
supportsAligning
public SimpleEmbosserProperties.Builder supportsAligning(boolean val)
Sets the value of aligning support.- Parameters:
val- the new value- Returns:
- returns this object
-
cellWidth
public SimpleEmbosserProperties.Builder cellWidth(double val)
Sets the value of cell width.- Parameters:
val- the new value- Returns:
- returns this object
-
cellHeight
public SimpleEmbosserProperties.Builder cellHeight(double val)
Sets the value of cell height.- Parameters:
val- the new value- Returns:
- returns this object
-
build
public SimpleEmbosserProperties build()
Creates a new instance ofSimpleEmbosserPropertiesbased on the current state of the builder.- Returns:
- returns a new
SimpleEmbosserPropertiesinstance
-
-