public class DataForSendToPrinterTSC
extends java.lang.Object
Constructor and Description |
---|
DataForSendToPrinterTSC() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
autoDetect(int x,
int y)
This command feeds the paper through the gap/black mark sensor in an effort to determine the paper and gap/black mark sizes, respectively.
|
static byte[] |
backFeed(int n)
This command feeds the label in reverse.
|
static byte[] |
bar(int x,
int y,
int width,
int heigth)
This command draws a bar on the label format.
|
static byte[] |
barCode(int x,
int y,
java.lang.String codeType,
int heigth,
int human,
int rotation,
int narrow,
int wide,
java.lang.String content)
This command prints 1D barcodes.
|
static byte[] |
bitmap(int x,
int y,
int mode,
android.graphics.Bitmap bitmap,
BitmapToByteData.BmpType bmpType)
This command draws bitmap images (as opposed to BMP graphic files).
|
static byte[] |
blineBydot(int m,
int n)
This command sets the height of the black line and the user-defined extra label feeding length each form feed takes.
|
static byte[] |
blineByinch(double m,
double n)
This command sets the height of the black line and the user-defined extra label feeding length each form feed takes.
|
static byte[] |
blineBymm(double m,
double n)
This command sets the height of the black line and the user-defined extra label feeding length each form feed takes.
|
static byte[] |
blineDetect(int x,
int y)
This command feeds the paper through the black mark sensor in an effort to determine the paper and black mark sizes, respectively.
|
static byte[] |
block(int x,
int y,
int width,
int height,
java.lang.String font,
int rotation,
int x_multiplication,
int y_multiplication,
int space,
int alignment,
java.lang.String content)
This command prints paragraph on label.
|
static byte[] |
block(int x,
int y,
int width,
int height,
java.lang.String font,
int rotation,
int x_multiplication,
int y_multiplication,
java.lang.String content)
This command prints paragraph on label.
|
static byte[] |
box(int x,
int y,
int x_end,
int y_end,
int thickness)
This command draws rectangles on the labe
|
static byte[] |
checkPrinterStateByPort4000()
This command is used on port 4000, once sent, the printer will return the data representing the status once
|
static byte[] |
checkPrinterStateByPort9100()
This command obtains the printer status at any time, even in the event of printer error.
|
static byte[] |
cls()
This command clears printer buffer.
|
static byte[] |
codeBlockFMode(int x,
int y,
int rotation,
int row_height,
int module_width,
java.lang.String content)
This command draws CODABLOCK F mode barcode.
|
static byte[] |
codePage(java.lang.String n)
This command is used to define the international character set corresponding to each letter key of the portable keyboard (optional, KP-200)
|
static byte[] |
country(java.lang.String n)
This command orients the keyboard for use in different countries via defining special characters on the KP-200 series portable LCD keyboard (option).
|
static byte[] |
cut()
This command activates the cutter to immediately cut the labels without back feeding the label.
|
static byte[] |
delay(int ms)
Let the printer wait specific period of time then go on next command.
|
static byte[] |
density(int n)
This command sets the printing darkness
|
static byte[] |
direction(int n)
This command defines the printout direction and mirror image.
|
static byte[] |
disPlay(java.lang.String s)
This command can show the image, which is in printer’s image buffer, on LCD panel
|
static byte[] |
dmatrix(int x,
int y,
int width,
int height,
int xm,
int row,
int col,
java.lang.String expression,
java.lang.String content)
This command is used to draw DataMatrix two-dimensional barcode
|
static byte[] |
dmatrix(int x,
int y,
int width,
int height,
java.lang.String expression,
java.lang.String content) |
static byte[] |
downLoad(java.lang.String filename)
Download program documentation
|
static byte[] |
downLoad(java.lang.String filename,
android.graphics.Bitmap bitmap)
Download imgae
|
static byte[] |
downLoad(java.lang.String filename,
int size,
java.lang.String content)
Download text document
|
static byte[] |
downLoad(java.lang.String filename,
java.lang.String filepath)
Download text file
|
static byte[] |
ellipse(int x,
int y,
int width,
int height,
int thickness)
This command draws an ellipse on the label.
|
static byte[] |
eoj()
Let the printer wait until process of commands (before EOJ) be finished then go on the next command.
|
static byte[] |
eop()
End of program.
|
static byte[] |
erase(int x,
int y,
int width,
int height)
This command clears a specified region in the image buffer.
|
static byte[] |
feed(int n)
This command feeds label with the specified length.
|
static byte[] |
files()
This command prints out the total memory size, available memory size and files lists (or lists the files through RS-232) in the printer memory (both FLASH memory and DRAM).
|
static byte[] |
formFeed()
This command feeds label to the beginning of next label
|
static byte[] |
gapBydot(int m,
int n)
Defines the gap distance between two labels
|
static byte[] |
gapByinch(double m,
double n)
Defines the gap distance between two labels.
|
static byte[] |
gapBymm(double m,
double n)
Defines the gap distance between two labels
|
static byte[] |
gapDetect() |
static byte[] |
gapDetect(int x,
int y)
This command feeds the paper through the gap sensor in an effort to determine the paper and gap sizes, respectively.
|
static byte[] |
home()
This command will feed label until the internal sensor has determined the origin.
|
static byte[] |
initialPrinter()
This command can restore printer settings to defaults.
|
static byte[] |
kill(java.lang.String filename)
This command deletes a file in the printer memory.
|
static byte[] |
limitFeedBydot(int n)
This command is used to set the printer to feed paper.
|
static byte[] |
limitFeedByinch(double n)
This command is used to set the printer to feed paper.
|
static byte[] |
limitFeedBymm(double n)
This command is used to set the printer to feed paper.
|
static byte[] |
move()
This command moves downloaded files from DRAM to FLASH memory.
|
static byte[] |
offSetBydot(int m)
This command is used to control the stop position of each label in the peel-off mode.
|
static byte[] |
offSetByinch(double m)
This command is used to control the stop position of each label in the peel-off mode.
|
static byte[] |
offSetBymm(double m)
This command is used to control the stop position of each label in the peel-off mode.
|
static byte[] |
pdf417(int x,
int y,
int width,
int height,
int rotate,
java.lang.String option,
java.lang.String content)
This command defines a PDF417 2D bar code.
|
static byte[] |
print(int m)
This command prints the label format currently stored in the image buffer.
|
static byte[] |
print(int m,
int n)
This command prints the label format currently stored in the image buffer.
|
static byte[] |
putBmp(int x,
int y,
java.lang.String filename)
This command prints BMP format images.
|
static byte[] |
putBmp(int x,
int y,
java.lang.String filename,
int bpp,
int contrast)
This command prints BMP format images.
|
static byte[] |
putpcx(int x,
int y,
java.lang.String filename)
This command prints PCX format images.
|
static byte[] |
qrCode(int x,
int y,
java.lang.String eccLevel,
int cellWidth,
java.lang.String mode,
int rotation,
java.lang.String content)
This command prints QR code.
|
static byte[] |
qrCode(int x,
int y,
java.lang.String eccLevel,
int cellWidth,
java.lang.String mode,
int rotation,
java.lang.String model,
java.lang.String mask,
java.lang.String content)
This command prints QR code.
|
static byte[] |
reference(int x,
int y)
This command defines the reference point of the label.
|
static byte[] |
reverse(int x,
int y,
int width,
int height)
This command reverses a region in image buffer.
|
static byte[] |
run(java.lang.String filename)
This command executes a program resident in the printer memory.
|
static byte[] |
selfTest()
At this command, the printer will print out the printer information
|
static byte[] |
selfTest(java.lang.String page)
At this command, the printer will print out the printer information
|
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[] |
shift(int n)
This command moves the label’s vertical position.
|
static byte[] |
sizeBydot(int m,
int n)
This command defines the label width and length.
|
static byte[] |
sizeByinch(double m,
double n)
This command defines the label width and length.
|
static byte[] |
sizeBymm(double m,
double n)
This command defines the label width and length.
|
static byte[] |
sound(int level,
int interval)
This command controls the sound frequency of the beeper.
|
static byte[] |
speed(double n)
This command defines the print speed
|
static byte[] |
text(int x,
int y,
java.lang.String font,
int rotation,
int x_multiplication,
int y_multiplication,
java.lang.String content)
This command prints text on label.
|
public static void setCharsetName(java.lang.String charset)
charset
- public static byte[] sizeBymm(double m, double n)
m
- Label width (mm)n
- Label height (mm)public static byte[] sizeByinch(double m, double n)
m
- Label width (inch)n
- Label height (inch)public static byte[] sizeBydot(int m, int n)
m
- Label width (dot)n
- Label height (dot)public static byte[] gapByinch(double m, double n)
m
- The gap distance between two labelsn
- The offset distance of the gappublic static byte[] gapBymm(double m, double n)
m
- n
- public static byte[] gapBydot(int m, int n)
m
- n
- public static byte[] gapDetect(int x, int y)
x
- Paper length (in dots)y
- Gap length (in dots)public static byte[] gapDetect()
public static byte[] blineDetect(int x, int y)
x
- Paper length (in dots)y
- Gap length (in dots)public static byte[] autoDetect(int x, int y)
x
- y
- public static byte[] blineByinch(double m, double n)
m
- The height of black line either in inch or mmn
- The extra label feeding lengthpublic static byte[] blineBymm(double m, double n)
m
- n
- public static byte[] blineBydot(int m, int n)
m
- n
- public static byte[] offSetByinch(double m)
m
- public static byte[] offSetBymm(double m)
m
- public static byte[] offSetBydot(int m)
m
- public static byte[] speed(double n)
n
- Printing speed in one secondpublic static byte[] density(int n)
n
- 0-15public static byte[] direction(int n)
n
- public static byte[] reference(int x, int y)
x
- y
- public static byte[] shift(int n)
n
- public static byte[] country(java.lang.String n)
n
- public static byte[] codePage(java.lang.String n)
n
- public static byte[] cls()
public static byte[] feed(int n)
n
- public static byte[] backFeed(int n)
n
- public static byte[] formFeed()
public static byte[] home()
public static byte[] print(int m, int n)
m
- Specifies how many sets of labels will be printed.n
- Specifies how many copies should be printed for each particular label set.public static byte[] print(int m)
m
- public static byte[] sound(int level, int interval)
level
- interval
- public static byte[] cut()
public static byte[] limitFeedByinch(double n)
n
- public static byte[] limitFeedBymm(double n)
n
- public static byte[] limitFeedBydot(int n)
n
- public static byte[] selfTest()
public static byte[] selfTest(java.lang.String page)
page
- public static byte[] eoj()
public static byte[] delay(int ms)
ms
- public static byte[] disPlay(java.lang.String s)
s
- IMAGE Show the image in printer’s image buffer on LCD panel.public static byte[] initialPrinter()
public static byte[] bar(int x, int y, int width, int heigth)
x
- y
- width
- heigth
- public static byte[] barCode(int x, int y, java.lang.String codeType, int heigth, int human, int rotation, int narrow, int wide, java.lang.String content)
x
- y
- codeType
- heigth
- human
- rotation
- narrow
- wide
- content
- public static byte[] bitmap(int x, int y, int mode, android.graphics.Bitmap bitmap, BitmapToByteData.BmpType bmpType)
x
- y
- mode
- bitmap
- bmpType
- public static byte[] box(int x, int y, int x_end, int y_end, int thickness)
x
- y
- x_end
- y_end
- thickness
- public static byte[] ellipse(int x, int y, int width, int height, int thickness)
x
- y
- width
- height
- thickness
- public static byte[] codeBlockFMode(int x, int y, int rotation, int row_height, int module_width, java.lang.String content)
x
- y
- rotation
- row_height
- module_width
- content
- public static byte[] dmatrix(int x, int y, int width, int height, int xm, int row, int col, java.lang.String expression, java.lang.String content)
x
- y
- width
- height
- xm
- row
- col
- expression
- content
- public static byte[] dmatrix(int x, int y, int width, int height, java.lang.String expression, java.lang.String content)
x
- y
- width
- height
- expression
- content
- public static byte[] erase(int x, int y, int width, int height)
x
- y
- width
- height
- public static byte[] pdf417(int x, int y, int width, int height, int rotate, java.lang.String option, java.lang.String content)
x
- y
- width
- height
- rotate
- option
- content
- public static byte[] putBmp(int x, int y, java.lang.String filename, int bpp, int contrast)
x
- y
- filename
- bpp
- contrast
- public static byte[] putBmp(int x, int y, java.lang.String filename)
x
- y
- filename
- public static byte[] putpcx(int x, int y, java.lang.String filename)
x
- y
- filename
- public static byte[] qrCode(int x, int y, java.lang.String eccLevel, int cellWidth, java.lang.String mode, int rotation, java.lang.String model, java.lang.String mask, java.lang.String content)
x
- y
- eccLevel
- cellWidth
- mode
- rotation
- model
- mask
- content
- public static byte[] qrCode(int x, int y, java.lang.String eccLevel, int cellWidth, java.lang.String mode, int rotation, java.lang.String content)
x
- y
- eccLevel
- cellWidth
- mode
- rotation
- content
- public static byte[] reverse(int x, int y, int width, int height)
x
- y
- width
- height
- public static byte[] text(int x, int y, java.lang.String font, int rotation, int x_multiplication, int y_multiplication, java.lang.String content)
x
- y
- font
- rotation
- x_multiplication
- y_multiplication
- content
- public static byte[] block(int x, int y, int width, int height, java.lang.String font, int rotation, int x_multiplication, int y_multiplication, int space, int alignment, java.lang.String content)
x
- y
- width
- height
- font
- rotation
- x_multiplication
- y_multiplication
- space
- alignment
- content
- public static byte[] block(int x, int y, int width, int height, java.lang.String font, int rotation, int x_multiplication, int y_multiplication, java.lang.String content)
x
- y
- width
- height
- font
- rotation
- x_multiplication
- y_multiplication
- content
- public static byte[] checkPrinterStateByPort9100()
public static byte[] checkPrinterStateByPort4000()
public static byte[] downLoad(java.lang.String filename)
filename
- public static byte[] downLoad(java.lang.String filename, int size, java.lang.String content)
filename
- size
- content
- public static byte[] downLoad(java.lang.String filename, java.lang.String filepath)
filename
- filepath
- public static byte[] downLoad(java.lang.String filename, android.graphics.Bitmap bitmap)
filename
- bitmap
- public static byte[] eop()
public static byte[] files()
public static byte[] kill(java.lang.String filename)
filename
- public static byte[] move()
public static byte[] run(java.lang.String filename)
filename
-