public class DevicePrinterESCPOS extends Object implements DevicePrinter
Modifier and Type | Field and Description |
---|---|
protected PrinterWritter |
m_CommOutputPrinter |
protected UnicodeTranslator |
m_trans |
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
Modifier | Constructor and Description |
---|---|
protected |
DevicePrinterESCPOS(PrinterWritter CommOutputPrinter,
Codes codes,
UnicodeTranslator trans) |
Modifier and Type | Method and Description |
---|---|
void |
beginLine(int iTextSize,
int iFont) |
void |
endLine() |
static DevicePrinterESCPOS |
getPrinter(PrinterWritter CommOutputPrinter,
Codes codes,
UnicodeTranslator trans) |
JComponent |
getPrinterComponent() |
String |
getPrinterDescription() |
String |
getPrinterName() |
List<Byte> |
getStatus(Integer status_type) |
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 PrinterWritter m_CommOutputPrinter
protected UnicodeTranslator m_trans
protected DevicePrinterESCPOS(PrinterWritter CommOutputPrinter, Codes codes, UnicodeTranslator trans) throws TicketPrinterException
TicketPrinterException
public static DevicePrinterESCPOS getPrinter(PrinterWritter CommOutputPrinter, Codes codes, UnicodeTranslator trans) throws TicketPrinterException
TicketPrinterException
protected 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
sType
- sCode
- sSize
- iEcl
- public void beginLine(int iTextSize, int iFont)
beginLine
in interface DevicePrinter
public void printText(int iStyle, String sText)
printText
in interface DevicePrinter
public 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_type)
getStatus
in interface DevicePrinter
Copyright © 2021. All rights reserved.