public class ITF14Bean extends Interleaved2Of5Bean
DEFAULT_WIDE_FACTORdoQuietZone, fontName, fontSize, height, moduleWidth, msgPos, pattern, quietZone, quietZoneVertical| Constructor and Description |
|---|
ITF14Bean()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
BarcodeDimension |
calcDimensions(String msg)
Calculates the dimension of a barcode with the given message.
|
void |
doQuietZone(boolean value)
Controls whether a quiet zone should be included or not.
|
void |
generateBarcode(CanvasProvider canvas,
String msg)
Generates a barcode using the given Canvas to render the barcode to its
output format.
|
double |
getBearerBarWidth()
Returns the bearer bar width.
|
boolean |
isBearerBox()
Indicates whether a bearer box is generated or just horizontal bearer bars.
|
void |
setBearerBarWidth(double width)
Sets the bearer bar width.
|
void |
setBearerBox(boolean value)
Controls whether a bearer box is generated or just horizontal bearer bars.
|
protected void |
validate()
Validates the barcode bean's settings.
|
getBarWidth, getChecksumMode, getWideFactor, isDisplayChecksum, setChecksumMode, setDisplayChecksum, setWideFactorgetBarHeight, getFontName, getFontSize, getHeight, getHumanReadableHeight, getModuleWidth, getMsgPosition, getPattern, getQuietZone, getVerticalQuietZone, hasFontDescender, hasQuietZone, setBarHeight, setFontName, setFontSize, setHeight, setModuleWidth, setMsgPosition, setPattern, setQuietZone, setVerticalQuietZonepublic boolean isBearerBox()
public void setBearerBox(boolean value)
value - true for a bearer box, false for horizontal bearer bars.public double getBearerBarWidth()
public void setBearerBarWidth(double width)
width - the bearer bar width (in millimeters)public void doQuietZone(boolean value)
doQuietZone in class AbstractBarcodeBeanvalue - true if a quiet zone should be includedprotected void validate()
public void generateBarcode(CanvasProvider canvas, String msg)
generateBarcode in interface BarcodeGeneratorgenerateBarcode in class Interleaved2Of5Beancanvas - CanvasProvider that the barcode is to be rendered on.msg - message to encodeBarcodeGenerator.generateBarcode(CanvasProvider, String)public BarcodeDimension calcDimensions(String msg)
calcDimensions in interface BarcodeGeneratorcalcDimensions in class Interleaved2Of5Beanmsg - message to use for calculation.BarcodeGenerator.calcDimensions(String)Copyright © 2003–2023. All rights reserved.