提供對 Printronix 圖形語言 (PGL) 表單/標籤創建的支持。 更多...
公開方法(Public Methods) | |
| PglForm (String formName) | |
| 建立具有指定名稱的表單。 | |
| void | AddPglObject (Object pglObject) |
| 添加可轉換為 PGL 語法的對象。 | |
| void | Barcode_1D (Barcode_1D_Properties bcdSetup, int startRow, int startCol, String bcdData) |
| 使用非默認設置添加 1D 條碼。 | |
| void | Barcode_1D (PGL.Barcode_Type1D bcdType, int startRow, int startCol, String bcdData) |
| 使用默認條碼設置添加 1D 條碼。 | |
| void | Barcode_2D (Barcode_2D_Properties bcdSetup, int startRow, int startCol, String bcdData) |
| 使用非默認設置添加 2D 條碼。 | |
| void | Barcode_2D (PGL.Barcode_Type2D bcdType, int startRow, int startCol, String bcdData) |
| 使用默認條碼設置添加 2D 條碼。 | |
| void | Box (int lineThickness, int startRow, int startCol, int endRow, int endCol) |
| 添加方框。 更多... | |
| String | GetAsString () |
| String | GetName () |
| 更改表單名稱。 | |
| boolean | IsDeleteAfterUse () |
| 使用後務必從印表機記憶體中刪除表單。 更多... | |
| void | Line (int lineThickness, int startRow, int startCol, int endRow, int endCol) |
| 添加線條:垂直、水平、對角線。 更多... | |
| void | RawContent (String rawContent) |
| 將原始內容新增至表單,用於需要添加自訂內容的情況。 更多... | |
| void | Rfid_Verify (Rfid_ReadProperties readProps, Rfid_ReadBitField readBitField) |
| 讀取內容並發送回主機。 更多... | |
| void | Rfid_Write (PGL.Rfid_MemBlock memBank, PGL.Rfid_Format dataFormat, int bitCount, String data) |
| 用於僅寫入一個位元欄位的簡單寫入情況。 | |
| void | Rfid_Write (Rfid_WriteProperties writeProps, Rfid_WriteBitField bitField) |
| 用於僅寫入一個位元欄位的情況。 | |
| void | Scale (PGL.SCALE_UNITS units, int horzRes, int vertRes) |
| 更改用於表單內物件定位的縮放比例。 更多... | |
| void | SetDeleteAfterUse (boolean deleteAfterUse) |
| void | SetName (String name) |
| void | Text (int startRow, int startCol, int vertExpand, int horzExpand, String data) |
| 添加文字。 更多... | |
| String | toString () |
提供對 Printronix 圖形語言 (PGL) 表單/標籤創建的支持。
當定位物件時,請注意原點位於表單/標籤的左上角。 這意味著,當使用行(垂直)和列(水平)來定位物件時,表單/標籤內的物件會隨行數增加而向下移動,隨列數增加而向右移動。
| void Box | ( | int | lineThickness, |
| int | startRow, | ||
| int | startCol, | ||
| int | endRow, | ||
| int | endCol | ||
| ) |
添加方框。
開始/結束位置相對於表單/標籤的原點(左上角)。
| boolean IsDeleteAfterUse | ( | ) |
使用後務必從印表機記憶體中刪除表單。
所有表單都儲存在印表機的 RAM 中,如果表單僅使用一次,使用後刪除表單以釋放記憶體是一個良好的習慣。
| void Line | ( | int | lineThickness, |
| int | startRow, | ||
| int | startCol, | ||
| int | endRow, | ||
| int | endCol | ||
| ) |
添加線條:垂直、水平、對角線。
開始/結束位置相對於表單/標籤的原點(左上角)。 垂直線:開始列 = 結束列 水平線:開始行 = 結束行 對角線:開始列 != 結束列,開始行 != 結束行。
| void RawContent | ( | String | rawContent | ) |
| void Rfid_Verify | ( | Rfid_ReadProperties | readProps, |
| Rfid_ReadBitField | readBitField | ||
| ) |
讀取內容並發送回主機。
印表機必須配置為將資料傳回主機,且主機必須在適當的通訊端口接收印表機的資料。 例如:狀態端口 3002,或管理端口 3007,或資料端口。
| void Scale | ( | PGL.SCALE_UNITS | units, |
| int | horzRes, | ||
| int | vertRes | ||
| ) |
更改用於表單內物件定位的縮放比例。
請注意,儘管可以更改縮放以使物件定位更容易,但它不會影響物件的列印。預設縮放為水平 300 dpi,垂直 300 dpi。
| void Text | ( | int | startRow, |
| int | startCol, | ||
| int | vertExpand, | ||
| int | horzExpand, | ||
| String | data | ||
| ) |
添加文字。
開始/結束位置相對於表單/標籤的原點(左上角)。 垂直和水平擴展用於調整文字高度/寬度。 0 表示不擴展。