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 SimpleEmbosserProperties
build()
Creates a new instance ofSimpleEmbosserProperties
based on the current state of the builder.SimpleEmbosserProperties.Builder
cellHeight(double val)
Sets the value of cell height.SimpleEmbosserProperties.Builder
cellWidth(double val)
Sets the value of cell width.SimpleEmbosserProperties.Builder
supportsAligning(boolean val)
Sets the value of aligning support.SimpleEmbosserProperties.Builder
supportsDuplex(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 ofSimpleEmbosserProperties
based on the current state of the builder.- Returns:
- returns a new
SimpleEmbosserProperties
instance
-
-