|
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.HeightVariableBarcodeBean
org.krysalis.barcode4j.impl.fourstate.AbstractFourStateBean
org.krysalis.barcode4j.impl.fourstate.RoyalMailCBCBean
Implements the Royal Mail Customer Barcode.
| Field Summary | |
protected static double |
DEFAULT_MODULE_WIDTH
The default module width for RoyalMail. |
| Fields inherited from class org.krysalis.barcode4j.impl.AbstractBarcodeBean |
doQuietZone, fontName, fontSize, height, moduleWidth, msgPos, pattern, quietZone, quietZoneVertical |
| Constructor Summary | |
RoyalMailCBCBean()
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. |
void |
setMsgPosition(HumanReadablePlacement placement)
Sets the placement of the human-readable part. |
| Methods inherited from class org.krysalis.barcode4j.impl.fourstate.AbstractFourStateBean |
getAscenderHeight, getBarHeight, getBarWidth, getChecksumMode, getIntercharGapWidth, getTrackHeight, getVerticalQuietZone, setAscenderHeight, setChecksumMode, setIntercharGapWidth, setTrackHeight, updateHeight |
| Methods inherited from class org.krysalis.barcode4j.impl.AbstractBarcodeBean |
doQuietZone, getBarHeight, getFontName, getFontSize, getHeight, getHumanReadableHeight, getModuleWidth, getMsgPosition, getPattern, getQuietZone, hasFontDescender, hasQuietZone, setBarHeight, setFontName, setFontSize, setHeight, setModuleWidth, 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
| Constructor Detail |
public RoyalMailCBCBean()
| Method Detail |
public void setMsgPosition(HumanReadablePlacement placement)
setMsgPosition in class AbstractBarcodeBeanplacement - the placement of the human-readable part
public void generateBarcode(CanvasProvider canvas,
java.lang.String msg)
generateBarcode in interface BarcodeGeneratorgenerateBarcode in class AbstractBarcodeBeanpublic BarcodeDimension calcDimensions(java.lang.String msg)
calcDimensions in interface BarcodeGeneratorcalcDimensions in class AbstractBarcodeBean
|
barcode4j 2.0 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||