public class BarcodePrint
extends java.lang.Object
Constructor and Description |
---|
BarcodePrint(int formId,
long startNbr,
int fixedNumberLength,
int pages)
Constructs a new BarcodePrint.
|
BarcodePrint(int formId,
long startNbr,
int fixedNumberLength,
int amount,
java.lang.String unit,
int exhausted)
Constructs a new BarcodePrint.
|
Modifier and Type | Method and Description |
---|---|
void |
sendRemotePrintCommands(ToAppletWriter out) |
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 fontSize) |
void |
setImage(java.lang.String imageName) |
void |
setPrinter(java.lang.String printerName)
Sets the print service by the name as specified.
|
public BarcodePrint(int formId, long startNbr, int fixedNumberLength, int pages)
formId
- the ID of the used form, e.g. FORM_AVERY_ZWECKFORM_L4732REV25startNbr
- the start number - each new barcode is increased by onefixedNumberLength
- the fixed length of the barcode text - leading zeroes will be added until this length is reachedpages
- the number of pages to print#FORM_AVERY_ZWECKFORM_L4732REV25
public BarcodePrint(int formId, long startNbr, int fixedNumberLength, int amount, java.lang.String unit, int exhausted)
formId
- the ID of the used form, e.g. FORM_AVERY_ZWECKFORM_L4732REV25startNbr
- the start number - each new barcode is increased by onefixedNumberLength
- the fixed length of the barcode text - leading zeroes will be added until this length is reachedamount
- the number of pages or labels to printunit
- whether the amount means pages or labels, e.g. UNIT_PAGESexhausted
- how many labels of the first page are already used#FORM_AVERY_ZWECKFORM_L4732REV25
,
#UNIT_PAGES
,
#UNIT_LABELS
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 setPrinter(java.lang.String printerName)
printerName
- public void setImage(java.lang.String imageName)
public void setEncodedImagaData(java.lang.String encodedImagaData)
public void setFixtext(java.lang.String fixtext, int fontSize)
public void setAdjustment(int adjustmentX, int adjustmentY)
adjustmentX
- +- mm more right or leftadjustmentY
- +- mm deeper or higherpublic void sendRemotePrintCommands(ToAppletWriter out)
Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de