Class EAN8Bean
java.lang.Object
org.krysalis.barcode4j.impl.AbstractBarcodeBean
org.krysalis.barcode4j.impl.upcean.UPCEANBean
org.krysalis.barcode4j.impl.upcean.EAN8Bean
- All Implemented Interfaces:
BarcodeGenerator
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_WIDTHFields inherited from class org.krysalis.barcode4j.impl.AbstractBarcodeBean
doQuietZone, fontName, fontSize, height, moduleWidth, msgPos, pattern, quietZone, quietZoneVertical -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncalcDimensions(String msg) Calculates the dimension of a barcode with the given message.Factory method for the logic implementation.Methods inherited from class org.krysalis.barcode4j.impl.upcean.UPCEANBean
generateBarcode, getBarWidth, getChecksumMode, setChecksumMode, supplementalWidthMethods 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
-
Constructor Details
-
EAN8Bean
public EAN8Bean()
-
-
Method Details
-
createLogicImpl
Description copied from class:UPCEANBeanFactory method for the logic implementation.- Specified by:
createLogicImplin classUPCEANBean- Returns:
- the newly created logic implementation instance
-
calcDimensions
Description copied from class:AbstractBarcodeBeanCalculates the dimension of a barcode with the given message. The dimensions are dependant on the configuration of the barcode generator.- Specified by:
calcDimensionsin interfaceBarcodeGenerator- Overrides:
calcDimensionsin classUPCEANBean- Parameters:
msg- message to use for calculation.- Returns:
- BarcodeDimension a BarcodeDimension object containing the barcode's dimensions
- See Also:
-