barcode4j 2.1.0

org.krysalis.barcode4j
Interface BarcodeGenerator

All Known Implementing Classes:
AbstractBarcodeBean, AbstractFourStateBean, Codabar, CodabarBean, Code128, Code128Bean, Code39, Code39Bean, ConfigurableBarcodeGenerator, DataMatrix, DataMatrixBean, EAN128, EAN128Bean, EAN13, EAN13Bean, EAN8, EAN8Bean, HeightVariableBarcodeBean, Interleaved2Of5, Interleaved2Of5Bean, ITF14, ITF14Bean, PDF417, PDF417Bean, POSTNET, POSTNETBean, QRCode, QRCodeBean, RoyalMailCBC, RoyalMailCBCBean, UPCA, UPCABean, UPCE, UPCEAN, UPCEANBean, UPCEBean, USPSIntelligentMail, 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
 BarcodeDimension calcDimensions(java.lang.String msg)
          Calculates the dimension of a barcode with the given message.
 void generateBarcode(CanvasProvider canvas, java.lang.String msg)
          Generates a barcode using the given Canvas to render the barcode to its output format.
 

Method Detail

generateBarcode

void generateBarcode(CanvasProvider canvas,
                     java.lang.String msg)
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

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.

Parameters:
msg - message to use for calculation.
Returns:
BarcodeDimension a BarcodeDimension object containing the barcode's dimensions

barcode4j 2.1.0

Copyright © 2000-2010 Jeremias Maerki. All rights reserved.