public abstract class ZebraElement extends Object
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
defaultDrawGraphic
Will draw a default box on the graphic if drawGraphic method is not overload
|
protected Integer |
positionX
x-axis location (in dots)
|
protected Integer |
positionY
y-axis location (in dots)
|
| Constructor and Description |
|---|
ZebraElement() |
| Modifier and Type | Method and Description |
|---|---|
void |
drawPreviewGraphic(PrinterOptions printerOptions,
Graphics2D graphic)
Used to draw label preview.
|
protected void |
drawTopString(Graphics2D graphic,
Font font,
String text,
int positionX,
int positionY)
Function to draw Element, based on top position.
|
int |
getPositionX() |
int |
getPositionY() |
String |
getZplCode(PrinterOptions printerOptions)
Return Zpl code for this Element
|
protected String |
getZplCodePosition()
Function used by child class if you want to set position before draw your element.
|
ZebraElement |
setPositionX(int positionX) |
ZebraElement |
setPositionY(int positionY) |
protected Integer positionX
protected Integer positionY
protected boolean defaultDrawGraphic
public int getPositionX()
public ZebraElement setPositionX(int positionX)
positionX - the positionX to setpublic int getPositionY()
public ZebraElement setPositionY(int positionY)
positionY - the positionY to setpublic String getZplCode(PrinterOptions printerOptions)
protected String getZplCodePosition()
public void drawPreviewGraphic(PrinterOptions printerOptions, Graphics2D graphic)
printerOptions - TODOgraphic - protected void drawTopString(Graphics2D graphic, Font font, String text, int positionX, int positionY)
graphic - font - text - positionX - positionY - Copyright © 2015. All Rights Reserved.