public abstract class AbstractEmbosser extends AbstractFactory implements Embosser
EmbosserProperties.PrintMode
Modifier and Type | Field and Description |
---|---|
protected Table |
defaultTable |
protected Table |
setTable |
Constructor and Description |
---|
AbstractEmbosser(java.lang.String name,
java.lang.String desc,
java.lang.Enum<? extends java.lang.Enum<?>> identifier)
Creates a new AbstractEmbosser with the supplied name, description and identifier
|
Modifier and Type | Method and Description |
---|---|
double |
getCellHeight()
Gets cell height, in millimeters
|
double |
getCellWidth()
Gets cell width, in millimeters
|
java.lang.Object |
getFeature(java.lang.String key)
Gets the value of a feature used by this Factory
|
int |
getMaxHeight(PageFormat pageFormat)
Gets the max height for the specified page format
|
int |
getMaxWidth(PageFormat pageFormat)
Gets the max width for the specified page format
|
protected PageFormat |
getPageFormat()
Gets the page format
|
Area |
getPrintableArea(PageFormat pageFormat)
Gets the printable area for the specified page format
|
java.lang.Object |
getProperty(java.lang.String key)
Gets the value of a read-only property that applies to all objects returned
by this Factory.
|
protected void |
setCellHeight(double val)
Set cell height, in millimeters
|
protected void |
setCellWidth(double val)
Set cell width, in millimeters
|
void |
setFeature(java.lang.String key,
java.lang.Object value)
Associates the specified value with the specified key in this map.
|
boolean |
supportsTable(Table table)
Returns true if table is supported
|
java.lang.String |
toString() |
compareTo, getDescription, getDisplayName, getIdentifier
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getPrintPage, getTableFilter, newEmbosserWriter, newEmbosserWriter, supportsPageFormat, supportsPaper, supportsPrintPage
getDescription, getDisplayName, getIdentifier
supports8dot, supportsAligning, supportsDuplex, supportsPrintMode, supportsVolumes, supportsZFolding
public AbstractEmbosser(java.lang.String name, java.lang.String desc, java.lang.Enum<? extends java.lang.Enum<?>> identifier)
name
- the embosser namedesc
- the embosser descriptionidentifier
- an identifierprotected void setCellWidth(double val)
val
- the width, in millimetersprotected void setCellHeight(double val)
val
- the height, in millimetersprotected PageFormat getPageFormat()
public double getCellWidth()
public double getCellHeight()
public int getMaxHeight(PageFormat pageFormat)
Embosser
getMaxHeight
in interface Embosser
pageFormat
- the page formatpublic int getMaxWidth(PageFormat pageFormat)
Embosser
getMaxWidth
in interface Embosser
pageFormat
- the page formatpublic Area getPrintableArea(PageFormat pageFormat)
Embosser
getPrintableArea
in interface Embosser
pageFormat
- the page formatpublic java.lang.Object getFeature(java.lang.String key)
Factory
getFeature
in interface Factory
key
- the key for the featurepublic java.lang.Object getProperty(java.lang.String key)
Factory
getProperty
in interface Factory
key
- the name of the property to getpublic void setFeature(java.lang.String key, java.lang.Object value)
setFeature
in interface Factory
key
- key with which the specified value is to be associated.value
- value to be associated with the specified key.public boolean supportsTable(Table table)
Embosser
supportsTable
in interface Embosser
table
- the table to testpublic java.lang.String toString()
toString
in class AbstractFactory