Package org.daisy.braille.embosser
Interface Embosser
- All Superinterfaces:
Comparable<Factory>
,EmbosserProperties
,Factory
- All Known Implementing Classes:
AbstractEmbosser
Provides an interface for common properties of an Embosser.
- Author:
- Joel HÃ¥kansson
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.daisy.braille.embosser.EmbosserProperties
EmbosserProperties.PrintMode
-
Method Summary
Modifier and TypeMethodDescriptionint
getMaxHeight
(PageFormat pageFormat) Gets the max height for the specified page formatint
getMaxWidth
(PageFormat pageFormat) Gets the max width for the specified page formatgetPrintableArea
(PageFormat pageFormat) Gets the printable area for the specified page formatgetPrintPage
(PageFormat pageFormat) Gets the dimensions of one print page for the specified page formatGets a table filter that returns true if supportsTable returns trueGets a new EmbosserWriter that writes to the supplied OutputStreamnewEmbosserWriter
(Device device) Gets a new EmbosserWriter that writes to the supplied Deviceboolean
supportsPageFormat
(PageFormat pageFormat) boolean
supportsPaper
(Paper paper) boolean
supportsPrintPage
(PrintPage printPage) Returns true if dimension is supportedboolean
supportsTable
(Table table) Returns true if table is supportedMethods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface org.daisy.braille.embosser.EmbosserProperties
supports8dot, supportsAligning, supportsDuplex, supportsPrintMode, supportsVolumes, supportsZFolding
Methods inherited from interface org.daisy.factory.Factory
getDescription, getDisplayName, getFeature, getIdentifier, getProperty, setFeature
-
Method Details
-
supportsPrintPage
Returns true if dimension is supported- Parameters:
printPage
- the dimension to test- Returns:
- returns true if dimension is supported
-
supportsPageFormat
-
supportsPaper
-
supportsTable
Returns true if table is supported- Parameters:
table
- the table to test- Returns:
- returns true if table is supported
-
getTableFilter
TableFilter getTableFilter()Gets a table filter that returns true if supportsTable returns true- Returns:
- returns a table filter
-
newEmbosserWriter
Gets a new EmbosserWriter that writes to the supplied OutputStream- Parameters:
os
- the OutputStream that the EmbosserWriter should use- Returns:
- returns a new EmbosserWriter
-
newEmbosserWriter
Gets a new EmbosserWriter that writes to the supplied Device- Parameters:
device
- the device that the EmbosserWriter should use- Returns:
- returns a new EmbosserWriter
-
getMaxWidth
Gets the max width for the specified page format- Parameters:
pageFormat
- the page format- Returns:
- returns the max width for the specified page format
-
getMaxHeight
Gets the max height for the specified page format- Parameters:
pageFormat
- the page format- Returns:
- returns the max height for the specified page format
-
getPrintPage
Gets the dimensions of one print page for the specified page format- Parameters:
pageFormat
- the page format- Returns:
- returns the dimensions of one print page for the specified page format
-
getPrintableArea
Gets the printable area for the specified page format- Parameters:
pageFormat
- the page format- Returns:
- returns the printable area for the specified page format
-