public abstract class ConfigurableBarcodeGenerator extends Object implements BarcodeGenerator, org.apache.avalon.framework.configuration.Configurable
| Modifier and Type | Field and Description |
|---|---|
static String[] |
BARCODE_ELEMENTS
Contains all possible element names that may appear in barcode XML.
|
protected AbstractBarcodeBean |
bean
Proxy target.
|
| Constructor and Description |
|---|
ConfigurableBarcodeGenerator() |
| Modifier and Type | Method and Description |
|---|---|
BarcodeDimension |
calcDimensions(String msg)
Calculates the dimension of a barcode with the given message.
|
void |
configure(org.apache.avalon.framework.configuration.Configuration cfg) |
void |
generateBarcode(CanvasProvider canvas,
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.
|
public static final String[] BARCODE_ELEMENTS
protected AbstractBarcodeBean bean
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.ConfigurationExceptionpublic AbstractBarcodeBean getBean()
public void generateBarcode(CanvasProvider canvas, String msg)
generateBarcode in interface BarcodeGeneratorcanvas - CanvasProvider that the barcode is to be rendered on.msg - message to encodepublic BarcodeDimension calcDimensions(String msg)
calcDimensions in interface BarcodeGeneratormsg - message to use for calculation.Copyright © 2003–2023. All rights reserved.