public class DataForSendToPrinterPos80
extends java.lang.Object
Constructor and Description |
---|
DataForSendToPrinterPos80() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
allowOrForbidPressButton(int n)
Allow or prohibit keystrokes
|
static byte[] |
avoidLostOrder()
Realize the function of avoiding lost orders through the judgment of cutter
Only 9100 net port can use this function
|
static byte[] |
CancelChineseCharModel() |
static byte[] |
cancelUserDefinedCharacters(int n)
Cancel user-defined characters Cancel user-defined characters with code n
|
static byte[] |
canclePrintDataByPagemodel()
Cancel printing data in page mode
|
static byte[] |
creatCashboxContorlPulse(int m,
int t1,
int t2)
Generate cash drawer control pulse
|
static byte[] |
definedDownLoadBmp(android.graphics.Bitmap bitmap,
BitmapToByteData.BmpType bmpType) |
static byte[] |
definedFlashBmp(java.util.List<android.graphics.Bitmap> list,
int n,
BitmapToByteData.BmpType bmpType)
Define nvlogo
|
static byte[] |
definedUserDefinedChineseChar(int c2,
byte[] b)
Define user-defined Chinese characters
|
static byte[] |
defineuserDefinedCharacters(int c1,
int c2,
byte[] b)
Define user-defined characters
|
static byte[] |
executeMacrodeCommand(int r,
int t,
int m)
Execute macro command
|
static byte[] |
executePrintDataSaveByTransformToHex() |
static byte[] |
getPrinterStatus(int port)
Get printer's status
|
static byte[] |
horizontalPositioning()
Horizontal positioning
|
static byte[] |
initializePrinter()
Initialize the printer
|
static byte[] |
openCashboxRealtime(int m,
int t)
Generate cash drawer pulse in real time
|
static byte[] |
openOrCloseAutoReturnPrintState(int n)
Get printer's status
|
static byte[] |
printAndBackStandardmodel()
Print and return to standard mode
|
static byte[] |
PrintAndCarriageReturn()
Print and tab
|
static byte[] |
printAndFeed(int n)
Print and feed paper
|
static byte[] |
printAndFeedForward(int n)
Print and feed the paper n lines forward
|
static byte[] |
printAndFeedLine()
Print and feed lines
|
static byte[] |
printBarcode(int alignment,
int HRI,
int width,
int height,
int type,
int size,
java.lang.String content)
Print barcode
|
static byte[] |
printBarcode(int m,
int n,
java.lang.String content)
Print barcode
|
static byte[] |
printBarcode(int m,
java.lang.String content)
Print barcode
|
static byte[] |
printBmpInFLASH(int n,
int m)
Print the bitmap downloaded to FLASH
|
static byte[] |
printByPagemodel()
Print in page mode
This command is only valid in page mode
|
static byte[] |
printDownLoadBmp(int m) |
static byte[] |
printerOrderBuzzingAndWarningLight(int m,
int t,
int n)
Printer incoming single buzzer prompt and alarm light flashing
|
static byte[] |
printerOrderBuzzingHint(int n,
int t)
Buzzer prompt when the printer comes to print the order
|
static byte[] |
printQRcode(int n,
int errLevel,
java.lang.String code) |
static byte[] |
printRasterBmp(int m,
android.graphics.Bitmap bitmap,
BitmapToByteData.BmpType bmpType,
BitmapToByteData.AlignType alignType,
int pagewidth)
Print raster bitmap
|
static byte[] |
PrintsTheMaxiCodeSymbolDataInTheSymbolStorageArea()
Prints the MaxiCode symbol data in the symbol storage area
|
static byte[] |
PrintsThePDF417SymbolDataInTheSymbolStorageArea()
Prints the PDF417 symbol data in the symbol storage area.
|
static byte[] |
PrintsTheQRCodeSymbolDataInTheSymbolStorageArea()
Prints the QRCode symbol data in the symbol storage area.
|
static byte[] |
requestRealtimeForPrint(int n)
Real-time printer request
|
static byte[] |
returnState(int n) |
static byte[] |
selectAlignment(int n)
Choose alignment
|
static byte[] |
selectBmpModel(int m,
int nL,
int nH,
byte[] b)
Select bitmap mode
|
static byte[] |
selectCharacterCodePage(int n)
Select character code table
|
static byte[] |
selectCharacterSize(int n)
Set character size
|
static byte[] |
selectChineseCharModel()
Select Chinese character mode
|
static byte[] |
selectCutPagerModerAndCutPager(int m)
Select the cutting mode and cut the paper
|
static byte[] |
selectCutPagerModerAndCutPager(int m,
int n)
Select the cutting mode and cut the paper after feeding
|
static byte[] |
selectFont(int n)
Choose font
|
static byte[] |
selectHRICharacterPrintPosition(int n)
Select the printing position of the HRI character; HRI is the character to annotate the content of the barcode
|
static byte[] |
selectHRIFont(int n)
Choose HRI to use fonts
|
static byte[] |
selectInternationalCharacterSets(int n)
Choose an international character set
|
static byte[] |
selectOrCancelBoldModel(int n)
Select or cancel bold mode
|
static byte[] |
selectOrCancelChineseCharDoubleWH(int n)
Select or cancel the double height and width of Chinese characters
|
static byte[] |
selectOrCancelChineseCharUnderLineModel(int n) |
static byte[] |
selectOrCancelConvertPrintModel(int n)
Select or cancel the upside-down printing mode
|
static byte[] |
selectOrCancelCW90(int n)
Select or cancel 90 degrees clockwise rotation
This command is only valid in page mode
|
static byte[] |
selectOrCancelDoubelPrintModel(int n)
Select or cancel doubel print model
|
static byte[] |
selectOrCancelInvertPrintModel(int n)
Select or cancel the black and white reverse printing mode
|
static byte[] |
selectOrCancelUnderlineModel(int n)
Select or cancel the underline mode
|
static byte[] |
selectOrCancleCustomChar(int n)
Select or cancel user-defined characters
|
static byte[] |
selectPageModel()
Select page mode
|
static byte[] |
selectPrintDirectionUnderPageModel(int n)
Select the print area direction in page mode
|
static byte[] |
selectPrinter(int n)
Select printer
|
static byte[] |
selectPrintModel(int n)
Choose print mode
|
static byte[] |
selectPrintTransducerOutPutPageOutSignal(int n)
Select printer paper sensor to output paper out signal
|
static byte[] |
selectPrintTransducerStopPrint(int n)
Select the printer sensor and stop printing
|
static byte[] |
selectStandardModel()
Choose standard mode
|
static byte[] |
sendRealtimestatus(int n)
Real-time status transmission
|
static byte[] |
setAbsolutePositionUnderPageModel(int nL,
int nH)
Set absolute position in page mode
|
static byte[] |
setAbsolutePrintPosition(int m,
int n)
Set absolute print position
m+n*256 represent the distance from the beginning of the line, the range is 0-255
|
static byte[] |
setBarcodeHeight(int n)
Set Barcode Height
|
static byte[] |
setBarcodeWidth(int n)
Set barcode width
|
static byte[] |
setCharRightSpace(int n)
Set character right spacing
|
static void |
setCharsetName(java.lang.String charset)
Set the character encoding used to transmit the printed content to the printer,
the default is the Chinese encoding "gbk"
|
static byte[] |
setChineseCharacterModel(int n)
Set Chinese character mode
|
static byte[] |
setChineseCharLeftAndRightSpace(int n1,
int n2)
Set the left and right spacing of Chinese characters
|
static byte[] |
setDefultLineSpacing()
Set the default line spacing about 3.75mm
|
static byte[] |
setHorizontalAndVerticalMoveUnit(int x,
int y)
Set horizontal and vertical movement units
|
static byte[] |
setHorizontalmovementPosition(byte[] b)
Set the horizontal line jump position
|
static byte[] |
setLeftSpace(int nL,
int nH)
Set left margin
|
static byte[] |
setLineSpaceing(int n)
Set line spacing
|
static byte[] |
setPrintAreaUnderPageModel(int xL,
int xH,
int yL,
int yH,
int dxL,
int dxH,
int dyL,
int dyH)
Set print area in page mode
|
static byte[] |
setPrintAreaWidth(int nL,
int nH)
Set print area width
|
static byte[] |
setRelativeHorizontalPrintPosition(int nL,
int nH)
Set relative horizontal printing position
|
static byte[] |
SetsTheErrorCorrectionLevelForPDF417(int m,
int n)
Sets the error correction level for PDF417 symbols.
|
static byte[] |
SetsTheErrorCorrectionLevelForQRCodeSymbol(int n)
Sets the error correction level for QRCode symbol.
|
static byte[] |
SetsTheModuleHeightForPDF417(int n)
Sets the module height to [(module width) × n]
|
static byte[] |
SetsTheModuleWidthOfPDF417(int n)
Sets the module width of one PDF417 symbol to n dots.
|
static byte[] |
SetsTheNumberOfColumnsOfTheDataAreaForPDF417(int n)
Sets the number of columns of the data area for PDF417
|
static byte[] |
SetsTheNumberOfRowsOfTheDataAreaForPDF417(int n)
Sets the number of rows of the data area for PDF417
|
static byte[] |
SetsTheSizeOfTheQRCodeSymbolModule(int n)
Sets the size of the QRCode symbol module to [n dots × n dots]
|
static byte[] |
setVerticalRelativePositionUnderPageModel(int nL,
int nH)
Set relative print position in page mode
|
static byte[] |
SpecifiesOrCancelsVariousPDF417SymbolOptions(int m)
Specifies or cancels various PDF417 symbol options
|
static byte[] |
SpecifiesTheModeForMaxiCodeSymbol(int n)
Specifies the mode for MaxiCode symbol
|
static byte[] |
startOrStopMacrodeFinition() |
static byte[] |
StoresSymbolDataInItheMaxiCodeSymbolStorageArea(int pL,
int pH,
byte[] b)
Stores symbol data (d1…dk) in the MaxiCode symbol storage area.
|
static byte[] |
StoresSymbolDataInThePDF417SymbolStorageArea(int pL,
int pH,
byte[] b)
Stores symbol data (d1...dk) in the PDF417 symbol storage area.
|
static byte[] |
StoresSymbolDataInTheQRCodeSymbolStorageArea(java.lang.String code)
Stores symbol data (d1…dk) in the QRCode symbol storage area.
|
static byte[] |
TransmitsTheSizeOfTheEncodedSymbolDataInTheSymbolStorageAreaMaxiCode()
Transmits the size of the encoded symbol data in the symbol storage area
|
static byte[] |
TransmitsTheSizeOfTheSymbolDataInTheSymbolStorageAreaPDF417()
Transmits the size of the symbol data in the symbol storage area.
|
static byte[] |
TransmitsTheSizeOfTheSymbolDataInTheSymbolStorageAreaQRCode()
Transmits the size of the symbol data in the symbol storage area
|
public static void setCharsetName(java.lang.String charset)
charset
- public static byte[] horizontalPositioning()
public static byte[] printAndFeedLine()
public static byte[] printAndBackStandardmodel()
public static byte[] PrintAndCarriageReturn()
public static byte[] canclePrintDataByPagemodel()
public static byte[] sendRealtimestatus(int n)
n
- public static byte[] requestRealtimeForPrint(int n)
n
- public static byte[] openCashboxRealtime(int m, int t)
m
- t
- public static byte[] printByPagemodel()
public static byte[] setCharRightSpace(int n)
n
- the variable representing the size of the gap, the range is 0-255public static byte[] selectPrintModel(int n)
n
- represents the variable of the print mode, the range is 0-255public static byte[] setAbsolutePrintPosition(int m, int n)
m
- n
- public static byte[] selectOrCancleCustomChar(int n)
n
- 0-255, the lowest bit is 1, used; the lowest bit is 0, not usedpublic static byte[] defineuserDefinedCharacters(int c1, int c2, byte[] b)
c1
- c1 is the starting character code, the range is 32<=c1<=c2<=127c2
- c2 is the termination character code, the range is 32<=c1<=c2<=127b
- the format of byte array b is [x1-d1...d(x1*y)]...[xk d1...d(y*xk)], which is a collection of character data downloaded by characterspublic static byte[] selectBmpModel(int m, int nL, int nH, byte[] b)
m
- nL
- nH
- b
- public static byte[] selectOrCancelUnderlineModel(int n)
n
- n:0,48-cancel the underline; 1,49 select underline (1 point wide); 2,50 select underline (2 point wide)public static byte[] setDefultLineSpacing()
public static byte[] setLineSpaceing(int n)
n
- 0-255public static byte[] selectPrinter(int n)
n
- public static byte[] cancelUserDefinedCharacters(int n)
n
- public static byte[] initializePrinter()
public static byte[] setHorizontalmovementPosition(byte[] b)
b
- public static byte[] selectOrCancelBoldModel(int n)
n
- 0-255, the lowest bit is 1, select bold; the lowest bit is 0, cancel boldpublic static byte[] selectOrCancelDoubelPrintModel(int n)
n
- n, 0-255, the lowest bit is 1, double printing is selected; the lowest bit is 0, double printing is cancelledpublic static byte[] printAndFeed(int n)
n
- Paper feeding distance, unit inch, range: 0-255public static byte[] selectPageModel()
public static byte[] selectFont(int n)
n
- n-range: 0, 1, 48, 49; 0, 48 standard font; 1, 49 compressed fontpublic static byte[] selectInternationalCharacterSets(int n)
n
- public static byte[] selectStandardModel()
public static byte[] selectPrintDirectionUnderPageModel(int n)
n
- public static byte[] selectOrCancelCW90(int n)
n
- public static byte[] setPrintAreaUnderPageModel(int xL, int xH, int yL, int yH, int dxL, int dxH, int dyL, int dyH)
xL
- xH
- yL
- yH
- dxL
- dxH
- dyL
- dyH
- public static byte[] setRelativeHorizontalPrintPosition(int nL, int nH)
nL
- nH
- public static byte[] selectAlignment(int n)
n
- public static byte[] selectPrintTransducerOutPutPageOutSignal(int n)
n
- public static byte[] selectPrintTransducerStopPrint(int n)
n
- public static byte[] allowOrForbidPressButton(int n)
n
- n: 0-255, the last digit of n is 0, the key is enabled, it is 1, the key is disabledpublic static byte[] printAndFeedForward(int n)
n
- 0-255public static byte[] creatCashboxContorlPulse(int m, int t1, int t2)
m
- 0/1;48/49t1
- 0-255t2
- 0-255public static byte[] selectCharacterCodePage(int n)
n
- public static byte[] selectOrCancelConvertPrintModel(int n)
n
- the lowest bit 0 is cancelled, the lowest bit 1 is selected, range: 0-255public static byte[] printBmpInFLASH(int n, int m)
n
- 0-255,number of nvlogom
- 48-51 alignmentpublic static byte[] definedFlashBmp(java.util.List<android.graphics.Bitmap> list, int n, BitmapToByteData.BmpType bmpType)
list
- list-bitmap list, store the bitmap object you want to store in flash, list is empty or size is 0, return a new byte[0]n
- n-the number of bitmaps, also the size of the listbmpType
- The type of bitmap printing you want, binary method and dither methodpublic static byte[] selectCharacterSize(int n)
n
- n-range 0-255; 0 to 3 bits of n set the character height, 4-7 bits are used to set the character widthpublic static byte[] setAbsolutePositionUnderPageModel(int nL, int nH)
nL
- nH
- public static byte[] definedDownLoadBmp(android.graphics.Bitmap bitmap, BitmapToByteData.BmpType bmpType)
bitmap
- bmpType
- public static byte[] executePrintDataSaveByTransformToHex()
public static byte[] printDownLoadBmp(int m)
m
- public static byte[] startOrStopMacrodeFinition()
public static byte[] selectOrCancelInvertPrintModel(int n)
n
- 0-255, the lowest bit is 0, cancel reverse display printing, the lowest bit is 1, select reverse display printingpublic static byte[] selectHRICharacterPrintPosition(int n)
n
- range 0-3 or 48-51; represents the printing position of the character in the barcodepublic static byte[] setLeftSpace(int nL, int nH)
nL
- nH
- public static byte[] setHorizontalAndVerticalMoveUnit(int x, int y)
x
- y
- public static byte[] selectCutPagerModerAndCutPager(int m)
m
- 0,48, full cut; 1,49, half cutpublic static byte[] selectCutPagerModerAndCutPager(int m, int n)
m
- 66n
- number of feed linespublic static byte[] setPrintAreaWidth(int nL, int nH)
nL
- nH
- public static byte[] setVerticalRelativePositionUnderPageModel(int nL, int nH)
nL
- nH
- public static byte[] executeMacrodeCommand(int r, int t, int m)
r
- 0-255, specify the number of executionst
- 0-255, execution time etcm
- 0 or 1, execution modepublic static byte[] openOrCloseAutoReturnPrintState(int n)
n
- public static byte[] getPrinterStatus(int port)
port
- (9100 or 4000)public static byte[] avoidLostOrder()
public static byte[] selectHRIFont(int n)
n
- 0,48 stands for standard; 1,49 stands for compressed fontpublic static byte[] setBarcodeWidth(int n)
n
- 2-6,default is 3public static byte[] setBarcodeHeight(int n)
n
- 1-255; default 162public static byte[] printBarcode(int m, java.lang.String content)
m
- Barcode type: 0-6content
- public static byte[] printBarcode(int m, int n, java.lang.String content)
m
- Barcode type: 65-73n
- Indicates the number of barcode data, the length of the string cannot exceed the range specified by ncontent
- public static byte[] printBarcode(int alignment, int HRI, int width, int height, int type, int size, java.lang.String content)
alignment
- 0-2 or 48-50; respectively means: left-aligned, centered, right-alignedHRI
- HRI text display range 0-3 or 48-51; represents the printing position of the character in the bar codewidth
- Set width 2-6; default 3height
- Set height 1-255; default 162type
- Barcode type: 65-73size
- Indicates the number of barcode data, the length of the string cannot exceed the range specified by ncontent
- Barcode content stringpublic static byte[] returnState(int n)
n
- public static byte[] printRasterBmp(int m, android.graphics.Bitmap bitmap, BitmapToByteData.BmpType bmpType, BitmapToByteData.AlignType alignType, int pagewidth)
m
- print type 0-2,normal is 0bitmap
- imagebmpType
- covert bitmap to gray image by which methodsalignType
- align type 0-2,left center rightpagewidth
- print widthpublic static byte[] setChineseCharacterModel(int n)
n
- public static byte[] selectChineseCharModel()
public static byte[] selectOrCancelChineseCharUnderLineModel(int n)
n
- public static byte[] CancelChineseCharModel()
public static byte[] definedUserDefinedChineseChar(int c2, byte[] b)
c2
- b
- public static byte[] setChineseCharLeftAndRightSpace(int n1, int n2)
n1
- left margin 0-255n2
- right margin 0-255public static byte[] selectOrCancelChineseCharDoubleWH(int n)
n
- 0-255; only the lowest bit is valid, 0, cancel; 1, selectpublic static byte[] printerOrderBuzzingHint(int n, int t)
n
- Number of beeps. 1-9t
- Each beep time, t*50ms, 1-9public static byte[] printerOrderBuzzingAndWarningLight(int m, int t, int n)
m
- The number of buzzers and the number of flashes of the warning light. Range 1-20t
- Interval time of each tweet or flashing, (t*50ms), range 1-20n
- 0-3; respectively indicate whether to tweet, flashingpublic static byte[] SetsTheNumberOfColumnsOfTheDataAreaForPDF417(int n)
n
- 0≤ n ≤ 30public static byte[] SetsTheNumberOfRowsOfTheDataAreaForPDF417(int n)
n
- 0≤n≤90public static byte[] SetsTheModuleWidthOfPDF417(int n)
n
- 2≤n≤8,default 3public static byte[] SetsTheModuleHeightForPDF417(int n)
n
- 2≤n≤8,default 3public static byte[] SetsTheErrorCorrectionLevelForPDF417(int m, int n)
m
- 48,49n
- 48≤ n ≤ 56 (when m = 48 is specified),1 ≤ n ≤ 40 (when m = 49 is specified)public static byte[] SpecifiesOrCancelsVariousPDF417SymbolOptions(int m)
m
- m = 0 or 1,[Default] m = 0public static byte[] StoresSymbolDataInThePDF417SymbolStorageArea(int pL, int pH, byte[] b)
pL
- pH
- b
- public static byte[] PrintsThePDF417SymbolDataInTheSymbolStorageArea()
public static byte[] TransmitsTheSizeOfTheSymbolDataInTheSymbolStorageAreaPDF417()
public static byte[] SetsTheSizeOfTheQRCodeSymbolModule(int n)
n
- public static byte[] SetsTheErrorCorrectionLevelForQRCodeSymbol(int n)
n
- public static byte[] StoresSymbolDataInTheQRCodeSymbolStorageArea(java.lang.String code)
code
- public static byte[] PrintsTheQRCodeSymbolDataInTheSymbolStorageArea()
public static byte[] printQRcode(int n, int errLevel, java.lang.String code)
n
- unit size,default is 3errLevel
- 48-51code
- content of qrcodepublic static byte[] TransmitsTheSizeOfTheSymbolDataInTheSymbolStorageAreaQRCode()
public static byte[] SpecifiesTheModeForMaxiCodeSymbol(int n)
n
- public static byte[] StoresSymbolDataInItheMaxiCodeSymbolStorageArea(int pL, int pH, byte[] b)
pL
- pH
- b
- public static byte[] PrintsTheMaxiCodeSymbolDataInTheSymbolStorageArea()
public static byte[] TransmitsTheSizeOfTheEncodedSymbolDataInTheSymbolStorageAreaMaxiCode()