public class RoyalMailCBCBean extends AbstractFourStateBean
| Modifier and Type | Field and Description |
|---|---|
protected static double |
DEFAULT_MODULE_WIDTH
The default module width for RoyalMail.
|
doQuietZone, fontName, fontSize, height, moduleWidth, msgPos, pattern, quietZone, quietZoneVertical| Constructor and Description |
|---|
RoyalMailCBCBean()
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.
|
void |
setMsgPosition(HumanReadablePlacement placement)
Sets the placement of the human-readable part.
|
getAscenderHeight, getBarHeight, getBarWidth, getChecksumMode, getIntercharGapWidth, getTrackHeight, getVerticalQuietZone, setAscenderHeight, setChecksumMode, setIntercharGapWidth, setTrackHeight, updateHeightdoQuietZone, getBarHeight, getFontName, getFontSize, getHeight, getHumanReadableHeight, getModuleWidth, getMsgPosition, getPattern, getQuietZone, hasFontDescender, hasQuietZone, setBarHeight, setFontName, setFontSize, setHeight, setModuleWidth, setPattern, setQuietZone, setVerticalQuietZoneprotected static final double DEFAULT_MODULE_WIDTH
public void setMsgPosition(HumanReadablePlacement placement)
setMsgPosition in class AbstractBarcodeBeanplacement - the placement of the human-readable partpublic void generateBarcode(CanvasProvider canvas, String msg)
generateBarcode in interface BarcodeGeneratorgenerateBarcode in class AbstractBarcodeBeancanvas - CanvasProvider that the barcode is to be rendered on.msg - message to encodepublic BarcodeDimension calcDimensions(String msg)
calcDimensions in interface BarcodeGeneratorcalcDimensions in class AbstractBarcodeBeanmsg - message to use for calculation.Copyright © 2003–2023. All rights reserved.