|
barcode4j 2.1.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.USPSIntelligentMailBean
public class USPSIntelligentMailBean
Implements the USPS Intelligent Mail Barcode (Four State Customer Barcode).
| Field Summary |
|---|
| Fields inherited from class org.krysalis.barcode4j.impl.AbstractBarcodeBean |
|---|
doQuietZone, fontName, fontSize, height, moduleWidth, msgPos, pattern, quietZone |
| Constructor Summary | |
|---|---|
USPSIntelligentMailBean()
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 |
getVerticalQuietZone()
Returns the vertical quiet zone. |
void |
setVerticalQuietZone(double height)
Sets the height of the vertical quiet zone. |
void |
verifySettings()
Verifies whether the current settings of the bean are within the limits given by the USPS Intelligent Mail specification. |
| Methods inherited from class org.krysalis.barcode4j.impl.fourstate.AbstractFourStateBean |
|---|
getAscenderHeight, getBarHeight, getBarWidth, getChecksumMode, getIntercharGapWidth, getTrackHeight, 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, setMsgPosition, setPattern, setQuietZone |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public USPSIntelligentMailBean()
| Method Detail |
|---|
public double getVerticalQuietZone()
AbstractBarcodeBean.getQuietZone() is returned.
getVerticalQuietZone in class AbstractFourStateBeanpublic void setVerticalQuietZone(double height)
setVerticalQuietZone in class AbstractBarcodeBeanheight - the height of the vertical quiet zone (in mm)
public void generateBarcode(CanvasProvider canvas,
java.lang.String msg)
generateBarcode in interface BarcodeGeneratorgenerateBarcode in class AbstractBarcodeBeancanvas - CanvasProvider that the barcode is to be rendered on.msg - message to encodepublic BarcodeDimension calcDimensions(java.lang.String msg)
calcDimensions in interface BarcodeGeneratorcalcDimensions in class AbstractBarcodeBeanmsg - message to use for calculation.
public void verifySettings()
|
barcode4j 2.1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||