Provide support for Printronix Graphics Language (PGL) form/label creation. More...
Public Member Functions | |
PglForm (String formName) | |
Create form with a given name. | |
void | AddPglObject (Object pglObject) |
Add object that can be converted to PGL 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 (PGL.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 (PGL.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 | GetAsString () |
String | GetName () |
Change Form name. | |
boolean | IsDeleteAfterUse () |
Make sure to delete form from printer memory after use. More... | |
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 (PGL.Rfid_MemBlock memBank, PGL.Rfid_Format dataFormat, int bitCount, String data) |
For simple writes where only one bit field will be written. | |
void | Rfid_Write (Rfid_WriteProperties writeProps, Rfid_WriteBitField bitField) |
For writes where only one bit field will be written. | |
void | Scale (PGL.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 Printronix Graphics Language (PGL) 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.
boolean IsDeleteAfterUse | ( | ) |
Make sure to delete form from printer memory after use.
All forms are stored in printer RAM and if the form is a one-time use, it is good practice to free up memory and delete the form from printer memory after use.
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 | ) |
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 | ( | PGL.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 used to adjust text height/width.
0 values for no expansion.