Package org.krysalis.barcode4j
Interface BarcodeGenerator
- All Known Implementing Classes:
AbstractBarcodeBean,AbstractFourStateBean,CodabarBean,Code128Bean,Code39Bean,DataMatrixBean,EAN128Bean,EAN13Bean,EAN8Bean,HeightVariableBarcodeBean,Interleaved2Of5Bean,ITF14Bean,PDF417Bean,POSTNETBean,QRCodeBean,RoyalMailCBCBean,UPCABean,UPCEANBean,UPCEBean,USPSIntelligentMailBean
public interface BarcodeGenerator
This interface is used to generate whole barcodes.
- Version:
- $Id: BarcodeGenerator.java,v 1.2 2004-09-04 20:25:54 jmaerki Exp $
- Author:
- Jeremias Maerki
-
Method Summary
Modifier and TypeMethodDescriptioncalcDimensions(String msg) Calculates the dimension of a barcode with the given message.voidgenerateBarcode(CanvasProvider canvas, String msg) Generates a barcode using the given Canvas to render the barcode to its output format.
-
Method Details
-
generateBarcode
Generates a barcode using the given Canvas to render the barcode to its output format.- Parameters:
canvas- CanvasProvider that the barcode is to be rendered on.msg- message to encode
-
calcDimensions
Calculates the dimension of a barcode with the given message. The dimensions are dependant on the configuration of the barcode generator.- Parameters:
msg- message to use for calculation.- Returns:
- BarcodeDimension a BarcodeDimension object containing the barcode's dimensions
-