public class Barcode93 extends Barcode
x = 1f;
n = 2;
font = new Font("Helvetica",Font.PLAIN,20));
textAlignment = ALIGN_CENTER;
generateChecksum = false;
checksumText = false;
startStopText = true;
extended = false;
codeType = CODE93;
transparent = true;
shotText = true
generateChecksum = true;
checksumText = false;
This class is based on iText "A Free Java-PDF library by Bruno Lowagie and Paulo Soares" using the Mozilla Public License(MPL)| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ASCII_CHARS
ASCII chars representation in Code 93 using escape chars.
|
static java.lang.String |
CHARS
Code 93 chars ordered by code93 value
|
ALIGN_CENTER, ALIGN_LEFT, ALIGN_RIGHT, backgroundColor, barHeight, checksumText, CODABAR, code, CODE128, CODE128_RAW, CODE128_UCC, CODE93, codeType, EAN13, EAN8, extended, font, generateChecksum, guardBars, n, PLANET, POSTNET, quietZone, quietZoneX, showText, size, startStopText, SUPP2, SUPP5, textAlignment, transparent, TYPE_CODE128, TYPE_CODE93, TYPE_INTERLEAVED2OF5, UPCA, UPCE, x| Constructor and Description |
|---|
Barcode93()
Creates a new Barcode39.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getBarcodeWidth()
Gets the maximum width that the barcode will occupy.
|
static java.lang.String |
getChecksum(java.lang.String text)
Calculates the checksum.
|
void |
placeBarcode(Image i,
int barColor,
int textColor)
Places the barcode in a Image.
|
createImage, createImage, getBackgroundColor, getBarHeight, getCode, getCodeType, getFont, getFontName, getFontSize, getN, getQuietZoneX, getSize, getTextAlignment, getX, isChecksumText, isExtended, isGenerateChecksum, isGuardBars, isQuietZone, isShowText, isStartStopText, isTransparent, scale, setBackgroundColor, setBarHeight, setChecksumText, setCode, setCodeType, setExtended, setFont, setFontName, setFontSize, setFontStyle, setGenerateChecksum, setGuardBars, setN, setQuietZone, setQuietZoneX, setShowText, setSize, setStartStopText, setTextAlignment, setTransparent, setXpublic static java.lang.String CHARS
public static java.lang.String ASCII_CHARS
public int getBarcodeWidth()
getBarcodeWidth in class Barcodepublic static java.lang.String getChecksum(java.lang.String text)
text - the textpublic void placeBarcode(Image i, int barColor, int textColor)
|
|
Result |
|---|---|---|
|
|
bars and text painted with current fill color |
|
|
bars and text painted with |
|
|
bars painted with current color |
|
|
bars painted with |
placeBarcode in class Barcodei - the Image where the barcode will be placedbarColor - the color of the bars. It can be -1textColor - the color of the text. It can be -1