Class Braillo200x270x400v1x11Embosser
- java.lang.Object
-
- org.daisy.dotify.api.factory.AbstractFactory
-
- org.daisy.braille.utils.impl.tools.embosser.AbstractEmbosser
-
- org.daisy.braille.utils.impl.provider.braillo.BrailloEmbosser
-
- org.daisy.braille.utils.impl.provider.braillo.Braillo200x270x400v1x11Embosser
-
- All Implemented Interfaces:
Serializable
,Embosser
,EmbosserFactoryProperties
,EmbosserProperties
,Factory
,FactoryProperties
public class Braillo200x270x400v1x11Embosser extends BrailloEmbosser
Provides an Embosser for Braillo 200/270/400 firmware 1-11.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.daisy.dotify.api.embosser.EmbosserProperties
EmbosserProperties.PrintMode
-
Nested classes/interfaces inherited from interface org.daisy.dotify.api.factory.FactoryProperties
FactoryProperties.ComparatorBuilder
-
-
Field Summary
-
Fields inherited from class org.daisy.braille.utils.impl.tools.embosser.AbstractEmbosser
defaultTable, setTable, tableCatalogService
-
-
Constructor Summary
Constructors Constructor Description Braillo200x270x400v1x11Embosser(TableCatalogService service, EmbosserFactoryProperties props)
Creates a new Braillo 200/270/400 embosser having firmware version 1-11.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Area
getPrintableArea(PageFormat pageFormat)
Gets the printable area for the specified page format.PrintPage
getPrintPage(PageFormat pageFormat)
Gets the dimensions of one print page for the specified page format.EmbosserWriter
newEmbosserWriter(OutputStream os)
Gets a new EmbosserWriter that writes to the supplied OutputStream.EmbosserWriter
newEmbosserWriter(Device device)
Gets a new EmbosserWriter that writes to the supplied Device.boolean
supports8dot()
Returns true if this embosser supports 8 dot braille.boolean
supportsAligning()
Returns true if this embosser supports aligning.boolean
supportsDuplex()
Returns true if this embosser supports duplex printing.boolean
supportsPageFormat(PageFormat pageFormat)
Returns true if the page format is supported.boolean
supportsPaper(Paper paper)
Returns thue if the paper is supported.boolean
supportsPrintMode(EmbosserProperties.PrintMode mode)
Returns true if this embosser supports magazine layout.boolean
supportsPrintPage(PrintPage dim)
Returns true if dimension is supported.boolean
supportsVolumes()
Returns true if this embosser has some method for volume handling.boolean
supportsZFolding()
Returns true if this embosser supports z-folding.-
Methods inherited from class org.daisy.braille.utils.impl.provider.braillo.BrailloEmbosser
getCellHeight, getCellWidth, getTableFilter
-
Methods inherited from class org.daisy.braille.utils.impl.tools.embosser.AbstractEmbosser
getFeature, getMake, getMaxHeight, getMaxWidth, getModel, getPageFormat, getProperty, setFeature, supportsTable, toString
-
Methods inherited from class org.daisy.dotify.api.factory.AbstractFactory
getDescription, getDisplayName, getIdentifier
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.daisy.dotify.api.factory.FactoryProperties
getDescription, getDisplayName, getIdentifier
-
-
-
-
Constructor Detail
-
Braillo200x270x400v1x11Embosser
public Braillo200x270x400v1x11Embosser(TableCatalogService service, EmbosserFactoryProperties props)
Creates a new Braillo 200/270/400 embosser having firmware version 1-11.- Parameters:
service
- the table catalogprops
- the embosser properties
-
-
Method Detail
-
supportsPrintPage
public boolean supportsPrintPage(PrintPage dim)
Description copied from interface:Embosser
Returns true if dimension is supported.- Parameters:
dim
- the dimension to test- Returns:
- returns true if dimension is supported
-
newEmbosserWriter
public EmbosserWriter newEmbosserWriter(OutputStream os)
Description copied from interface:Embosser
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
public EmbosserWriter newEmbosserWriter(Device device)
Description copied from interface:Embosser
Gets a new EmbosserWriter that writes to the supplied Device.- Parameters:
device
- the device that the EmbosserWriter should use- Returns:
- returns a new EmbosserWriter
-
supports8dot
public boolean supports8dot()
Description copied from interface:EmbosserProperties
Returns true if this embosser supports 8 dot braille.- Returns:
- returns true if this embosser supports 8 dot braille
-
supportsDuplex
public boolean supportsDuplex()
Description copied from interface:EmbosserProperties
Returns true if this embosser supports duplex printing.- Returns:
- returns true if this embosser supports duplex printing
-
supportsAligning
public boolean supportsAligning()
Description copied from interface:EmbosserProperties
Returns true if this embosser supports aligning. This indicates that rows can be padded with whitespace to move the text block horizontally using the value returned bygetMaxWidth
. Should return true for all physical embossers, since they all have a finite row length.- Returns:
- returns true if this embosser supports aligning, false otherwise.
-
supportsVolumes
public boolean supportsVolumes()
Description copied from interface:EmbosserProperties
Returns true if this embosser has some method for volume handling.- Returns:
- returns true if this embosser supports volumes
-
getPrintableArea
public Area getPrintableArea(PageFormat pageFormat)
Description copied from interface:Embosser
Gets the printable area for the specified page format.- Specified by:
getPrintableArea
in interfaceEmbosser
- Overrides:
getPrintableArea
in classAbstractEmbosser
- Parameters:
pageFormat
- the page format- Returns:
- returns the printable area for the specified page format
-
getPrintPage
public PrintPage getPrintPage(PageFormat pageFormat)
Description copied from interface:Embosser
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
-
supportsZFolding
public boolean supportsZFolding()
Description copied from interface:EmbosserProperties
Returns true if this embosser supports z-folding. This indicates that, if tractor paper is used, the embosser can emboss every other paper upside down with the rear side up so that pages are ordered face up as they fold naturally in the output stack.- Returns:
- returns true if this embosser supports z-folding, false otherwise.
-
supportsPrintMode
public boolean supportsPrintMode(EmbosserProperties.PrintMode mode)
Description copied from interface:EmbosserProperties
Returns true if this embosser supports magazine layout. This indicates that the embosser can reorder pages and emboss two pages side-by-side on the same side of the paper (and two more on the other side), so that a readable document is created by stapling and folding the output stack in the middle.- Parameters:
mode
- the print mode- Returns:
- returns true if this embosser supports magazine layout, false otherwise.
-
supportsPageFormat
public boolean supportsPageFormat(PageFormat pageFormat)
Description copied from interface:Embosser
Returns true if the page format is supported.- Parameters:
pageFormat
- the page format- Returns:
- returns true if the page format is supported, false otherwise
-
-