public class Interleaved2Of5Bean extends AbstractBarcodeBean
| Modifier and Type | Field and Description |
|---|---|
protected static double |
DEFAULT_MODULE_WIDTH
The default module width for Interleaved 2 of 5.
|
static double |
DEFAULT_WIDE_FACTOR
The default wide factor for Interleaved 2 of 5.
|
doQuietZone, fontName, fontSize, height, moduleWidth, msgPos, pattern, quietZone, quietZoneVertical| Constructor and Description |
|---|
Interleaved2Of5Bean()
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
BarcodeDimension |
calcDimensions(String msg)
Calculates the dimension of a barcode with the given message.
|
void |
generateBarcode(CanvasProvider canvas,
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.
|
boolean |
isDisplayChecksum()
Indicates whether the checksum will be displayed as
part of the human-readable message.
|
void |
setChecksumMode(ChecksumMode mode)
Sets the checksum mode
|
void |
setDisplayChecksum(boolean value)
Enables or disables the use of the checksum in the
human-readable message.
|
void |
setWideFactor(double value)
Sets the factor by which wide bars are broader than narrow bars.
|
doQuietZone, getBarHeight, getFontName, getFontSize, getHeight, getHumanReadableHeight, getModuleWidth, getMsgPosition, getPattern, getQuietZone, getVerticalQuietZone, hasFontDescender, hasQuietZone, setBarHeight, setFontName, setFontSize, setHeight, setModuleWidth, setMsgPosition, setPattern, setQuietZone, setVerticalQuietZoneprotected static final double DEFAULT_MODULE_WIDTH
public static final double DEFAULT_WIDE_FACTOR
public boolean isDisplayChecksum()
public void setDisplayChecksum(boolean value)
value - true to include the checksum in the human-readable message,
false to ignorepublic void generateBarcode(CanvasProvider canvas, String msg)
AbstractBarcodeBeangenerateBarcode in interface BarcodeGeneratorgenerateBarcode in class AbstractBarcodeBeancanvas - CanvasProvider that the barcode is to be rendered on.msg - message to encodeBarcodeGenerator.generateBarcode(CanvasProvider, String)public BarcodeDimension calcDimensions(String msg)
AbstractBarcodeBeancalcDimensions in interface BarcodeGeneratorcalcDimensions in class AbstractBarcodeBeanmsg - message to use for calculation.BarcodeGenerator.calcDimensions(String)public double getBarWidth(int width)
AbstractBarcodeBeangetBarWidth in class AbstractBarcodeBeanwidth - the logical width (1=narrow, 2=wide)AbstractBarcodeBean.getBarWidth(int)public void setChecksumMode(ChecksumMode mode)
mode - the checksum modepublic ChecksumMode getChecksumMode()
public double getWideFactor()
public void setWideFactor(double value)
value - the wide factory (should be > 1.0)Copyright © 2003–2023. All rights reserved.