Provide support for TSC Print Language (TSPL) form/label creation. More...
Public Member Functions | |
TsplForm (String formName) | |
Create form with a given name. | |
void | AddTsplObject (Object tsplObject) |
Add object that can be converted to TSPL syntax. | |
void | Barcode_1D (Barcode_1D_Properties bcdSetup, int startRow, int startCol, String bcdData) |
Add 1D barcode with non-default settings passed in. | |
void | Barcode_1D (TSPL.Barcode_Type1D bcdType, int startRow, int startCol, String bcdData) |
Add 1D barcode using default barcode settings. | |
void | Barcode_2D (Barcode_2D_Properties bcdSetup, int startRow, int startCol, String bcdData) |
Add 2D barcode with non-default settings passed in. | |
void | Barcode_2D (TSPL.Barcode_Type2D bcdType, int startRow, int startCol, String bcdData) |
Add 2D barcode using default barcode settings. | |
void | Box (int lineThickness, int startRow, int startCol, int endRow, int endCol) |
Add box. More... | |
String | GetName () |
Change Form name. | |
boolean | IsDeleteAfterUse () |
Not Supported. | |
void | Line (int lineThickness, int startRow, int startCol, int endRow, int endCol) |
Add Line: Vertical, Horizontal, Diagonal. More... | |
void | RawContent (String rawContent) |
Raw content added to form for cases where custom content needs to be added. More... | |
void | Rfid_Verify (Rfid_ReadProperties readProps, Rfid_ReadBitField readBitField) |
Read and send back to host the contents read. More... | |
void | Rfid_Write (Rfid_WriteProperties writeProps, Rfid_WriteBitField bitField) |
For writes where only one bit field will be written. | |
void | Rfid_Write (TSPL.Rfid_MemBlock memBank, TSPL.Rfid_Format dataFormat, int bitCount, String data) |
For simple writes where only one bit field will be written. | |
void | Scale (TSPL.SCALE_UNITS units, int horzRes, int vertRes) |
Change the scaling used for object positioning within form. More... | |
void | SetDeleteAfterUse (boolean deleteAfterUse) |
void | SetName (String name) |
void | Text (int startRow, int startCol, int vertExpand, int horzExpand, String data) |
Add Text. More... | |
String | toString () |
Provide support for TSC Print Language (TSPL) form/label creation.
Note when positioning objects, the origin is the upper left of a form/label. This means that when positioning objects in terms of row (vertical) and column (horizontal), placement of objects within form/label move down when row increases and move right when column increases.
void Box | ( | int | lineThickness, |
int | startRow, | ||
int | startCol, | ||
int | endRow, | ||
int | endCol | ||
) |
Add box.
Start/end positions relative to form/label origin which is the upper left.
void Line | ( | int | lineThickness, |
int | startRow, | ||
int | startCol, | ||
int | endRow, | ||
int | endCol | ||
) |
Add Line: Vertical, Horizontal, Diagonal.
Start/end positions relative to form/label origin which is the upper left. Vertical Lines: start column = ending column Horizontal Lines: start row = ending row Diagonal Lines: start column != ending column, start row != ending row
void RawContent | ( | String | rawContent | ) |
Raw content added to form for cases where custom content needs to be added.
Adding raw content allows adding of PGL commands or other features that may not be available. No formatting of content is done. Caller responsible for making sure content follows PGL syntax.
void Rfid_Verify | ( | Rfid_ReadProperties | readProps, |
Rfid_ReadBitField | readBitField | ||
) |
Read and send back to host the contents read.
Printer must be configured to send data back to host. And, host must be listening for data at the appropriate communication port from printer. e.g. Status port 3002, or management port 3007, or data port
void Scale | ( | TSPL.SCALE_UNITS | units, |
int | horzRes, | ||
int | vertRes | ||
) |
Change the scaling used for object positioning within form.
Note that although scaling can change to make positioning of objects easier, it does not affect the printing of the objects. Default scaling is 300 dpi horizontal, 300 dpi vertical.
void Text | ( | int | startRow, |
int | startCol, | ||
int | vertExpand, | ||
int | horzExpand, | ||
String | data | ||
) |
Add Text.
Start/end positions relative to form/label origin which is the upper left. Vertical and horizontal expansion are used to adjust text height/width. 0 values for no expansion.