Class ImpactoEmbosser
- java.lang.Object
-
- org.daisy.dotify.api.factory.AbstractFactory
-
- org.daisy.braille.utils.impl.tools.embosser.AbstractEmbosser
-
- org.daisy.braille.utils.impl.provider.cidat.CidatEmbosser
-
- org.daisy.braille.utils.impl.provider.cidat.ImpactoEmbosser
-
- All Implemented Interfaces:
Serializable
,Embosser
,EmbosserFactoryProperties
,EmbosserProperties
,Factory
,FactoryProperties
public class ImpactoEmbosser extends CidatEmbosser
- 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.provider.cidat.CidatEmbosser
duplexEnabled, type
-
Fields inherited from class org.daisy.braille.utils.impl.tools.embosser.AbstractEmbosser
defaultTable, setTable, tableCatalogService
-
-
Constructor Summary
Constructors Constructor Description ImpactoEmbosser(TableCatalogService service, CidatEmbosserProvider.EmbosserType props)
Creates a new Impacto embosser.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getFeature(String key)
Gets the value of a feature used by this Factory.PrintPage
getPrintPage(PageFormat pageFormat)
Gets the dimensions of one print page for the specified page format.TableFilter
getTableFilter()
Gets a table filter that returns true if supportsTable returns true.EmbosserWriter
newEmbosserWriter(OutputStream os)
Gets a new EmbosserWriter that writes to the supplied OutputStream.void
setFeature(String key, Object value)
Associates the specified value with the specified key in this map.boolean
supportsPrintMode(EmbosserProperties.PrintMode mode)
Returns true if this embosser supports magazine layout.boolean
supportsZFolding()
Returns true if this embosser supports z-folding.-
Methods inherited from class org.daisy.braille.utils.impl.provider.cidat.CidatEmbosser
getCellHeight, getCellWidth, newEmbosserWriter, supports8dot, supportsAligning, supportsDuplex, supportsPageFormat, supportsPaper, supportsPrintPage, supportsVolumes
-
Methods inherited from class org.daisy.braille.utils.impl.tools.embosser.AbstractEmbosser
getMake, getMaxHeight, getMaxWidth, getModel, getPageFormat, getPrintableArea, getProperty, 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
-
ImpactoEmbosser
public ImpactoEmbosser(TableCatalogService service, CidatEmbosserProvider.EmbosserType props)
Creates a new Impacto embosser.- Parameters:
service
- the table catalogprops
- the embosser properties
-
-
Method Detail
-
getTableFilter
public TableFilter getTableFilter()
Description copied from interface:Embosser
Gets a table filter that returns true if supportsTable returns true.- Returns:
- returns a table filter
-
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
-
setFeature
public void setFeature(String key, Object value)
Description copied from class:AbstractEmbosser
Associates the specified value with the specified key in this map. If the map previously contained a mapping for this key, the old value is replaced.- Specified by:
setFeature
in interfaceFactory
- Overrides:
setFeature
in classCidatEmbosser
- Parameters:
key
- key with which the specified value is to be associated.value
- value to be associated with the specified key.
-
getFeature
public Object getFeature(String key)
Description copied from interface:Factory
Gets the value of a feature used by this Factory.- Specified by:
getFeature
in interfaceFactory
- Overrides:
getFeature
in classCidatEmbosser
- Parameters:
key
- the key for the feature- Returns:
- returns the current value of the feature
-
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.
-
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
-
-