|
barcode4j 2.0 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.krysalis.barcode4j.impl.AbstractBarcodeBean
org.krysalis.barcode4j.impl.codabar.CodabarBean
This class is an implementation of the Codabar barcode.
| Field Summary | |
protected static double |
DEFAULT_MODULE_WIDTH
The default module width for Codabar. |
protected static double |
DEFAULT_WIDE_FACTOR
The default wide factor for Codabar. |
| Fields inherited from class org.krysalis.barcode4j.impl.AbstractBarcodeBean |
doQuietZone, fontName, fontSize, height, moduleWidth, msgPos, pattern, quietZone, quietZoneVertical |
| Constructor Summary | |
CodabarBean()
Create a new instance. |
|
| Method Summary | |
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. |
void |
generateBarcode(CanvasProvider canvas,
java.lang.String msg)
Generates a barcode using the given Canvas to render the barcode to its output format. |
double |
getBarWidth(int width)
Returns the effective width of a bar with a given logical width. |
ChecksumMode |
getChecksumMode()
Returns the current checksum mode. |
double |
getWideFactor()
Returns the factor by which wide bars are broader than narrow bars. |
void |
setChecksumMode(ChecksumMode mode)
Sets the checksum mode |
void |
setWideFactor(double value)
Sets the factor by which wide bars are broader than narrow bars. |
| 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 |
| Field Detail |
protected static final double DEFAULT_MODULE_WIDTH
protected static final double DEFAULT_WIDE_FACTOR
| Constructor Detail |
public CodabarBean()
| Method Detail |
public ChecksumMode getChecksumMode()
public void setChecksumMode(ChecksumMode mode)
mode - the checksum modepublic double getWideFactor()
public void setWideFactor(double value)
value - the wide factory (should be > 1.0)public double getBarWidth(int width)
AbstractBarcodeBean
getBarWidth in class AbstractBarcodeBeanwidth - the logical width (1=narrow, 2=wide)
AbstractBarcodeBean.getBarWidth(int)
public void generateBarcode(CanvasProvider canvas,
java.lang.String msg)
AbstractBarcodeBean
generateBarcode in interface BarcodeGeneratorgenerateBarcode in class AbstractBarcodeBeanBarcodeGenerator.generateBarcode(CanvasProvider, String)public BarcodeDimension calcDimensions(java.lang.String msg)
AbstractBarcodeBean
calcDimensions in interface BarcodeGeneratorcalcDimensions in class AbstractBarcodeBeanBarcodeGenerator.calcDimensions(String)
|
barcode4j 2.0 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||