public abstract class BarcodePrintStd extends LabelPrintStd
Modifier and Type | Field and Description |
---|---|
protected java.awt.Font |
barcFont |
protected BarcodeDrawer |
barcodeDrawer |
protected int |
exhausted |
protected java.lang.String |
fixText |
protected java.awt.Font |
fixtextFont |
protected int |
fixTextSize |
protected java.awt.Image |
image |
form
curY, extraordinaryFormat, firstPrintCalled, groupStart, lineFeed, PRINT_DIALOG_ALWAYS, PRINT_DIALOG_EACH_GROUP, PRINT_DIALOG_NEVER, PRINT_DIALOG_ONCE, printDialogChoice, printerJob, printService
currentFontSpec, originalFont
Constructor and Description |
---|
BarcodePrintStd(int formId) |
Modifier and Type | Method and Description |
---|---|
void |
setAdjustment(int adjustmentX,
int adjustmentY)
Sets adjustment to correct on wrong printer positioning.
|
void |
setBarcodeType(int barcodeType)
Sets the barcode type.
|
void |
setEncodedImagaData(java.lang.String encodedImagaData) |
void |
setFixtext(java.lang.String fixText,
int fixTextSize) |
void |
setImage(java.awt.Image image) |
beforePrinting, getLabelAmount, getLabelCapacity, getSupportedForms
afterPrinting, getBottomPrintEnding, getLeftPrintStart, getPageFormat, getRightPrintEnding, getTopPrintStart, isToManipulate, print, print, print, replaceSize, replaceSize, setBottomPrintEnding, setLeftPrintStart, setMargins, setPrinter, setPrinterDialog, setRightPrintEnding, setTopPrintStart, startGroup
changeFontIfNew, getCompletelyLoadedImage, getCompletelyLoadedImage, getPx, getPxD, getRightAllignOffset, getRightAllignStartPoint, limit, limit, resetFont, setOnBold, wrap
protected BarcodeDrawer barcodeDrawer
protected int exhausted
protected java.awt.Font barcFont
protected int fixTextSize
protected java.awt.Font fixtextFont
protected java.lang.String fixText
protected java.awt.Image image
public void setBarcodeType(int barcodeType)
barcodeType
- the type of barcode to useBarcodeDrawer.BARCODE_TYPE_CODE128
,
BarcodeDrawer.BARCODE_TYPE_INT2OF5
,
BarcodeDrawer.BARCODE_TYPE_COD39
public void setFixtext(java.lang.String fixText, int fixTextSize)
public void setEncodedImagaData(java.lang.String encodedImagaData)
public void setImage(java.awt.Image image)
public void setAdjustment(int adjustmentX, int adjustmentY)
adjustmentX
- +- mm more right or leftadjustmentY
- +- mm deeper or higherCopyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de