|
barcode4j 2.0 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.krysalis.barcode4j.impl.ConfigurableBarcodeGenerator
Base class for most Avalon-Configurable barcode implementation proxies.
| Field Summary | |
static java.lang.String[] |
BARCODE_ELEMENTS
Contains all possible element names that may appear in barcode XML. |
protected AbstractBarcodeBean |
bean
Proxy target. |
| Constructor Summary | |
ConfigurableBarcodeGenerator()
|
|
| Method Summary | |
BarcodeDimension |
calcDimensions(java.lang.String msg)
Calculates the dimension of a barcode with the given message. The dimensions are dependant on the configuration of the barcode generator. |
void |
configure(org.apache.avalon.framework.configuration.Configuration cfg)
|
void |
generateBarcode(CanvasProvider canvas,
java.lang.String msg)
Generates a barcode using the given Canvas to render the barcode to its output format. |
AbstractBarcodeBean |
getBean()
Provides access to the underlying barcode bean. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String[] BARCODE_ELEMENTS
protected AbstractBarcodeBean bean
| Constructor Detail |
public ConfigurableBarcodeGenerator()
| Method Detail |
public void configure(org.apache.avalon.framework.configuration.Configuration cfg)
throws org.apache.avalon.framework.configuration.ConfigurationException
configure in interface org.apache.avalon.framework.configuration.Configurableorg.apache.avalon.framework.configuration.ConfigurationExceptionConfigurable.configure(Configuration)public AbstractBarcodeBean getBean()
public void generateBarcode(CanvasProvider canvas,
java.lang.String msg)
generateBarcode in interface BarcodeGeneratorcanvas - CanvasProvider that the barcode is to be rendered on.msg - message to encodepublic BarcodeDimension calcDimensions(java.lang.String msg)
calcDimensions in interface BarcodeGeneratormsg - message to use for calculation.
|
barcode4j 2.0 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||