public class DevicePrinterJavaPOS extends Object implements DevicePrinter
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 |
---|
DevicePrinterJavaPOS(String sDevicePrinterName,
String sDeviceDrawerName)
Creates a new instance of DevicePrinterJavaPOS
|
Modifier and Type | Method and Description |
---|---|
void |
beginLine(int iTextSize,
int iFont) |
void |
endLine() |
void |
finalize() |
JComponent |
getPrinterComponent() |
String |
getPrinterDescription() |
String |
getPrinterName() |
List<Byte> |
getStatus(Integer status) |
void |
openDrawer(int deviceNumber,
boolean printJob) |
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) |
public DevicePrinterJavaPOS(String sDevicePrinterName, String sDeviceDrawerName) throws TicketPrinterException
sDevicePrinterName
- sDeviceDrawerName
- TicketPrinterException
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
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 printJob)
openDrawer
in interface DevicePrinter
public List<Byte> getStatus(Integer status)
getStatus
in interface DevicePrinter
Copyright © 2021. All rights reserved.