|
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.postnet.POSTNETBean
public class POSTNETBean
Implements the United States Postal Service POSTNET barcode.
| Field Summary |
|---|
| Fields inherited from class org.krysalis.barcode4j.impl.AbstractBarcodeBean |
|---|
doQuietZone, fontName, fontSize, height, moduleWidth, msgPos, pattern, quietZone |
| Constructor Summary | |
|---|---|
POSTNETBean()
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 |
getBarHeight(int height)
Returns the effective height of a bar with a given logical height. |
double |
getBarWidth(int width)
Returns the effective width of a bar with a given logical width. |
BaselineAlignment |
getBaselinePosition()
Returns the baseline position. |
ChecksumMode |
getChecksumMode()
Returns the current checksum mode. |
double |
getIntercharGapWidth()
Returns the width between encoded characters. |
double |
getShortBarHeight()
Returns the height of a short bar. |
double |
getVerticalQuietZone()
Returns the vertical quiet zone. |
boolean |
isDisplayChecksum()
Indicates whether the checksum will be displayed as part of the human-readable message. |
void |
setBaselinePosition(BaselineAlignment baselinePosition)
Sets the baseline position. |
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 |
setIntercharGapWidth(double width)
Sets the width between encoded characters. |
void |
setShortBarHeight(double height)
Sets the height of a short bar. |
void |
setVerticalQuietZone(double height)
Sets the height of the vertical quiet zone. |
| 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 POSTNETBean()
| Method Detail |
|---|
public void setVerticalQuietZone(double height)
setVerticalQuietZone in class AbstractBarcodeBeanheight - the height of the vertical quiet zone (in mm)public double getVerticalQuietZone()
AbstractBarcodeBean.getQuietZone() is returned.
getVerticalQuietZone in class AbstractBarcodeBeanpublic void setChecksumMode(ChecksumMode mode)
mode - the checksum modepublic ChecksumMode getChecksumMode()
public double getIntercharGapWidth()
public void setIntercharGapWidth(double width)
width - the interchar gap widthpublic double getShortBarHeight()
public void setShortBarHeight(double height)
height - the height of a short barpublic double getBarWidth(int width)
getBarWidth in class AbstractBarcodeBeanwidth - the logical width (1=narrow, 2=wide)
public double getBarHeight(int height)
getBarHeight in class HeightVariableBarcodeBeanheight - the logical height (1=short, 2=tall)
public boolean isDisplayChecksum()
public void setDisplayChecksum(boolean value)
value - true to include the checksum in the human-readable message,
false to ignore
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 BaselineAlignment getBaselinePosition()
public void setBaselinePosition(BaselineAlignment baselinePosition)
baselinePosition - the baseline position
|
barcode4j 2.1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||