barcode4j 2.1.0

org.krysalis.barcode4j.impl.upcean
Class EAN8Bean

java.lang.Object
  extended by org.krysalis.barcode4j.impl.AbstractBarcodeBean
      extended by org.krysalis.barcode4j.impl.upcean.UPCEANBean
          extended by org.krysalis.barcode4j.impl.upcean.EAN8Bean
All Implemented Interfaces:
BarcodeGenerator

public class EAN8Bean
extends UPCEANBean

This class implements the EAN-8 barcode.

Version:
$Id: EAN8Bean.java,v 1.1 2004/09/12 17:57:52 jmaerki Exp $
Author:
Jeremias Maerki

Field Summary
 
Fields inherited from class org.krysalis.barcode4j.impl.upcean.UPCEANBean
DEFAULT_MODULE_WIDTH
 
Fields inherited from class org.krysalis.barcode4j.impl.AbstractBarcodeBean
doQuietZone, fontName, fontSize, height, moduleWidth, msgPos, pattern, quietZone, quietZoneVertical
 
Constructor Summary
EAN8Bean()
           
 
Method Summary
 BarcodeDimension calcDimensions(java.lang.String msg)
          Calculates the dimension of a barcode with the given message.
 UPCEANLogicImpl createLogicImpl()
          Factory method for the logic implementation.
 
Methods inherited from class org.krysalis.barcode4j.impl.upcean.UPCEANBean
generateBarcode, getBarWidth, getChecksumMode, setChecksumMode, supplementalWidth
 
Methods inherited from class org.krysalis.barcode4j.impl.AbstractBarcodeBean
doQuietZone, getBarHeight, getFontName, getFontSize, getHeight, getHumanReadableHeight, getModuleWidth, getMsgPosition, getPattern, getQuietZone, getVerticalQuietZone, hasFontDescender, hasQuietZone, setBarHeight, setFontName, setFontSize, setHeight, setModuleWidth, setMsgPosition, setPattern, setQuietZone, setVerticalQuietZone
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EAN8Bean

public EAN8Bean()
Method Detail

createLogicImpl

public UPCEANLogicImpl createLogicImpl()
Description copied from class: UPCEANBean
Factory method for the logic implementation.

Specified by:
createLogicImpl in class UPCEANBean
Returns:
the newly created logic implementation instance
See Also:
UPCEAN

calcDimensions

public BarcodeDimension calcDimensions(java.lang.String msg)
Description copied from class: AbstractBarcodeBean
Calculates the dimension of a barcode with the given message. The dimensions are dependant on the configuration of the barcode generator.

Specified by:
calcDimensions in interface BarcodeGenerator
Overrides:
calcDimensions in class UPCEANBean
Parameters:
msg - message to use for calculation.
Returns:
BarcodeDimension a BarcodeDimension object containing the barcode's dimensions
See Also:
UPCEAN

barcode4j 2.1.0

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