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, getIdentifierclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetPrintPage, getTableFilter, newEmbosserWriter, newEmbosserWriter, supportsPageFormat, supportsPaper, supportsPrintPagegetDescription, getDisplayName, getIdentifiersupports8dot, supportsAligning, supportsDuplex, supportsPrintMode, supportsVolumes, supportsZFoldingpublic 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)
EmbossergetMaxHeight in interface EmbosserpageFormat - the page formatpublic int getMaxWidth(PageFormat pageFormat)
EmbossergetMaxWidth in interface EmbosserpageFormat - the page formatpublic Area getPrintableArea(PageFormat pageFormat)
EmbossergetPrintableArea in interface EmbosserpageFormat - the page formatpublic java.lang.Object getFeature(java.lang.String key)
FactorygetFeature in interface Factorykey - the key for the featurepublic java.lang.Object getProperty(java.lang.String key)
FactorygetProperty in interface Factorykey - the name of the property to getpublic void setFeature(java.lang.String key,
java.lang.Object value)
setFeature in interface Factorykey - key with which the specified value is to be associated.value - value to be associated with the specified key.public boolean supportsTable(Table table)
EmbossersupportsTable in interface Embossertable - the table to testpublic java.lang.String toString()
toString in class AbstractFactory