|
barcode4j 2.1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.krysalis.barcode4j.impl.ConfigurableBarcodeGenerator
public abstract class 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. |
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.Configurable
org.apache.avalon.framework.configuration.ConfigurationException
public AbstractBarcodeBean getBean()
public void generateBarcode(CanvasProvider canvas, java.lang.String msg)
generateBarcode
in interface BarcodeGenerator
canvas
- CanvasProvider that the barcode is to be rendered on.msg
- message to encodepublic BarcodeDimension calcDimensions(java.lang.String msg)
calcDimensions
in interface BarcodeGenerator
msg
- message to use for calculation.
|
barcode4j 2.1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |