public class DevicePrinterXML extends Object implements DevicePrinter
Modifier and Type | Field and Description |
---|---|
protected PrinterWritter |
m_CommOutputPrinter |
protected String |
m_sName |
ALIGN_CENTER, ALIGN_LEFT, ALIGN_RIGHT, BARCODE_CODE128, BARCODE_EAN13, DIM2CODE_QR, FONT_0, FONT_1, SIZE_0, SIZE_1, SIZE_2, SIZE_3, STATUS_ASB_OFF, STATUS_ASB_ON, STATUS_DRAWER, STATUS_PAPER, STYLE_BOLD, STYLE_PLAIN, STYLE_UNDERLINE
Constructor and Description |
---|
DevicePrinterXML(PrinterWritter commOutputPrinter) |
Modifier and Type | Method and Description |
---|---|
void |
beginLine(int iTextSize,
int iFont) |
void |
endLine() |
JComponent |
getPrinterComponent() |
String |
getPrinterDescription() |
String |
getPrinterName() |
List<Byte> |
getStatus(Integer status) |
protected void |
initPrinter() |
void |
openDrawer(int deviceNumber,
boolean job) |
void |
printBarCode(String sType,
String sCode,
Integer iMargin) |
void |
printCutPartial() |
void |
printDim2Code(String sType,
String sCode,
String sSize,
int iEcl) |
void |
printImage(BufferedImage image,
int iAlign) |
void |
printRawText(String sText) |
void |
printStoredImage() |
void |
printText(int iStyle,
String sText) |
void |
reset() |
void |
setAttributesTicket(OutputTypeAttrTicket oVal) |
protected final PrinterWritter m_CommOutputPrinter
protected String m_sName
public DevicePrinterXML(PrinterWritter commOutputPrinter) throws TicketPrinterException
TicketPrinterException
protected final void initPrinter()
public String getPrinterName()
getPrinterName
in interface DevicePrinter
public String getPrinterDescription()
getPrinterDescription
in interface DevicePrinter
public JComponent getPrinterComponent()
getPrinterComponent
in interface DevicePrinter
public void reset()
reset
in interface DevicePrinter
public void printImage(BufferedImage image, int iAlign)
printImage
in interface DevicePrinter
public void printBarCode(String sType, String sCode, Integer iMargin)
printBarCode
in interface DevicePrinter
public void printDim2Code(String sType, String sCode, String sSize, int iEcl)
printDim2Code
in interface DevicePrinter
public void beginLine(int iTextSize, int iFont)
beginLine
in interface DevicePrinter
public void printText(int iStyle, String sText)
printText
in interface DevicePrinter
iStyle
- not evaluated, set to 0sText
- The text will be passed unchanged to the printerpublic void printRawText(String sText)
printRawText
in interface DevicePrinter
public void printStoredImage()
printStoredImage
in interface DevicePrinter
public void endLine()
endLine
in interface DevicePrinter
public void printCutPartial()
printCutPartial
in interface DevicePrinter
public void setAttributesTicket(OutputTypeAttrTicket oVal)
setAttributesTicket
in interface DevicePrinter
public void openDrawer(int deviceNumber, boolean job)
openDrawer
in interface DevicePrinter
public List<Byte> getStatus(Integer status)
getStatus
in interface DevicePrinter
Copyright © 2021. All rights reserved.