Class CidatEmbosser
- 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
-
- All Implemented Interfaces:
Serializable
,Embosser
,EmbosserFactoryProperties
,EmbosserProperties
,Factory
,FactoryProperties
- Direct Known Subclasses:
ImpactoEmbosser
,PortathielBlueEmbosser
public abstract class CidatEmbosser extends AbstractEmbosser
- 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 Modifier and Type Field Description protected boolean
duplexEnabled
protected CidatEmbosserProvider.EmbosserType
type
-
Fields inherited from class org.daisy.braille.utils.impl.tools.embosser.AbstractEmbosser
defaultTable, setTable, tableCatalogService
-
-
Constructor Summary
Constructors Constructor Description CidatEmbosser(TableCatalogService service, CidatEmbosserProvider.EmbosserType props)
Creates a new Cidat embosser.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected double
getCellHeight()
Gets cell height, in millimeters.protected double
getCellWidth()
Gets cell width, in millimeters.Object
getFeature(String key)
Gets the value of a feature used by this Factory.EmbosserWriter
newEmbosserWriter(Device device)
Gets a new EmbosserWriter that writes to the supplied Device.void
setFeature(String key, Object value)
Associates the specified value with the specified key in this map.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 format)
Returns true if the page format is supported.boolean
supportsPaper(Paper paper)
Returns thue if the paper is supported.boolean
supportsPrintPage(PrintPage dim)
Returns true if dimension is supported.boolean
supportsVolumes()
Returns true if this embosser has some method for volume handling.-
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.embosser.Embosser
getPrintPage, getTableFilter, newEmbosserWriter
-
Methods inherited from interface org.daisy.dotify.api.embosser.EmbosserProperties
supportsPrintMode, supportsZFolding
-
Methods inherited from interface org.daisy.dotify.api.factory.FactoryProperties
getDescription, getDisplayName, getIdentifier
-
-
-
-
Field Detail
-
type
protected CidatEmbosserProvider.EmbosserType type
-
duplexEnabled
protected boolean duplexEnabled
-
-
Constructor Detail
-
CidatEmbosser
public CidatEmbosser(TableCatalogService service, CidatEmbosserProvider.EmbosserType props)
Creates a new Cidat embosser.- Parameters:
service
- the table catalogprops
- the embosser properties
-
-
Method Detail
-
getCellWidth
protected double getCellWidth()
Gets cell width, in millimeters.- Specified by:
getCellWidth
in classAbstractEmbosser
- Returns:
- returns cell width, in millimeters
-
getCellHeight
protected double getCellHeight()
Gets cell height, in millimeters.- Specified by:
getCellHeight
in classAbstractEmbosser
- Returns:
- returns cell height, in millimeters
-
supportsPaper
public boolean supportsPaper(Paper paper)
Description copied from interface:Embosser
Returns thue if the paper is supported.- Parameters:
paper
- the paper- Returns:
- returns true if the paper is supported, false otherwise
-
supportsPageFormat
public boolean supportsPageFormat(PageFormat format)
Description copied from interface:Embosser
Returns true if the page format is supported.- Parameters:
format
- the page format- Returns:
- returns true if the page format is supported, false otherwise
-
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
-
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
-
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.
-
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
-
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 classAbstractEmbosser
- 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 classAbstractEmbosser
- Parameters:
key
- the key for the feature- Returns:
- returns the current value of the feature
-
-