PTXLabelText.java 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. package com.ruoyi.ptxlib.domain;
  2. import lombok.AllArgsConstructor;
  3. import lombok.Data;
  4. import lombok.NoArgsConstructor;
  5. /**
  6. * 标签打印文字类
  7. */
  8. @Data
  9. public class PTXLabelText {
  10. /** 文字类型 0:英文,1:中文*/
  11. private Integer textType;
  12. /** y轴间距 */
  13. private Integer spaceBetween;
  14. /** x坐标 */
  15. private Integer x;
  16. /** y坐标 */
  17. private Integer y;
  18. /** x轴垂直扩展 */
  19. private Integer xLineHeight;
  20. /** y轴垂直扩展 */
  21. private Integer yLineHeight;
  22. /** 打印的数据 */
  23. private String printData;
  24. /** tff字体文件名称(包含后缀) */
  25. private String tffFileName;
  26. public PTXLabelText() {
  27. }
  28. public PTXLabelText(Integer spaceBetween, Integer x, Integer y, Integer XLineHeight, Integer YLineHeight, String printData) {
  29. this.spaceBetween = spaceBetween;
  30. this.x = x;
  31. this.y = y;
  32. this.xLineHeight = XLineHeight;
  33. this.yLineHeight = YLineHeight;
  34. this.printData = printData;
  35. }
  36. public PTXLabelText(Integer spaceBetween, Integer x, Integer y, Integer XLineHeight, Integer YLineHeight, String printData, String tffFileName) {
  37. this.spaceBetween = spaceBetween;
  38. this.x = x;
  39. this.y = y;
  40. this.xLineHeight = XLineHeight;
  41. this.yLineHeight = YLineHeight;
  42. this.printData = printData;
  43. this.tffFileName = tffFileName;
  44. }
  45. }