Package org.krysalis.barcode4j.impl
Class HeightVariableBarcodeBean
java.lang.Object
org.krysalis.barcode4j.impl.AbstractBarcodeBean
org.krysalis.barcode4j.impl.HeightVariableBarcodeBean
- All Implemented Interfaces:
BarcodeGenerator
- Direct Known Subclasses:
AbstractFourStateBean,POSTNETBean
Base class for barcodes that encode information by varying the height
of the bars.
- Version:
- $Id: HeightVariableBarcodeBean.java,v 1.2 2006-11-07 16:43:37 jmaerki Exp $
- Author:
- Chris Dolphy
-
Field Summary
Fields inherited from class org.krysalis.barcode4j.impl.AbstractBarcodeBean
doQuietZone, fontName, fontSize, height, moduleWidth, msgPos, pattern, quietZone, quietZoneVertical -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract doublegetBarHeight(int height) Returns the effective height of a bar with a given logical height.Methods inherited from class org.krysalis.barcode4j.impl.AbstractBarcodeBean
calcDimensions, doQuietZone, generateBarcode, getBarHeight, getBarWidth, getFontName, getFontSize, getHeight, getHumanReadableHeight, getModuleWidth, getMsgPosition, getPattern, getQuietZone, getVerticalQuietZone, hasFontDescender, hasQuietZone, setBarHeight, setFontName, setFontSize, setHeight, setModuleWidth, setMsgPosition, setPattern, setQuietZone, setVerticalQuietZone
-
Constructor Details
-
HeightVariableBarcodeBean
public HeightVariableBarcodeBean()
-
-
Method Details
-
getBarHeight
public abstract double getBarHeight(int height) Returns the effective height of a bar with a given logical height.- Parameters:
height- the logical height (1=short, 2=tall)- Returns:
- double
-