|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sewoo.jpos.POSPrinterService
public class POSPrinterService
POSPrinterService. (ESCPOS)
see the POSPrinterConst class for Constant Parameter.
Field Summary | |
---|---|
java.lang.String |
fontTypefaceList
|
Constructor Summary | |
---|---|
POSPrinterService()
|
Method Summary | |
---|---|
int |
alignment(int align)
set Bitmap, Barcode Alignment. |
byte |
getBarCodeSymbol(int symbol)
get Barcode Symbol. |
boolean |
getCapRecBarCode()
Receipt Barcode Available. |
int |
getMapMode()
get MapMode. |
int |
getRecLineChars()
Receipt Line Characters. |
int |
getRecLineWidth()
Receipt length. |
void |
printBarCode(int station,
java.lang.String data,
int symbology,
int height,
int width,
int alignment,
int textPosition)
Print Barcode. |
int |
printBitmap(int station,
int[][] bImage,
int width,
int alignment)
Print Bitmap Image. |
int |
printBitmap(int station,
java.lang.String filePath,
int width,
int alignment)
Print Bitmap Image. |
void |
printNormal(int station,
java.lang.String data)
Print Normal Text. |
void |
selectPrinterModel(int productN)
select mobile printer model. |
void |
sendMSRInit()
|
void |
sendMSRMode(int mode)
|
void |
sendMSRStatusCheck()
Need to Read after call this method. |
void |
sendMSRtoNormalMode()
|
int |
setBarCodeDataPosition(int position)
set Barcode Data Position. |
int |
setBarCodeHeight(int height)
set Barcode Height. |
int |
setBarCodeWidth(int width,
int dataLength)
set Barcode Width. |
int |
setBitmap(int bitmapNumber,
int station,
java.lang.String fileName,
int width,
int alignment)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final java.lang.String fontTypefaceList
Constructor Detail |
---|
public POSPrinterService()
Method Detail |
---|
public void printNormal(int station, java.lang.String data) throws JposException
station
- Station
PTR_S_JOURNAL PTR_S_RECEIPT PTR_S_SLIP
data
- Text data
JposException
public void printBarCode(int station, java.lang.String data, int symbology, int height, int width, int alignment, int textPosition) throws JposException
station
- Station
PTR_S_JOURNAL PTR_S_RECEIPT PTR_S_SLIP
data
- Barcode datasymbology
- Barcode symbol type
PTR_BCS_UPCA PTR_BCS_UPCE PTR_BCS_EAN8 PTR_BCS_JAN8 PTR_BCS_EAN13 PTR_BCS_JAN13 PTR_BCS_ITF PTR_BCS_Codabar PTR_BCS_Code39 PTR_BCS_Code93 PTR_BCS_Code128
height
- Barcode height (1 - 255)width
- Barcode width (2 - 6)alignment
- Barcode alignment
PTR_BC_LEFT PTR_BC_CENTER PTR_BC_RIGHT
textPosition
- Print position of barcode HRI letters(barcode data)
PTR_BC_TEXT_NONE PTR_BC_TEXT_ABOVE PTR_BC_TEXT_BELOW
JposException
public int printBitmap(int station, java.lang.String filePath, int width, int alignment) throws JposException, java.io.IOException
station
- Station
PTR_S_JOURNAL PTR_S_RECEIPT PTR_S_SLIP
filePath
- Image file pathwidth
- Image width
PTR_BM_ASIS Print the bitmap with one bitmap pixel per printer dot. Other Values Bitmap width expressed in the unit of measure given by MapMode.
alignment
- Image alignment
PTR_BM_LEFT PTR_BM_CENTER PTR_BM_RIGHT
JposException
java.io.IOException
public int printBitmap(int station, int[][] bImage, int width, int alignment) throws JposException, java.io.IOException
station
- Station
PTR_S_JOURNAL PTR_S_RECEIPT PTR_S_SLIP
bImage
- Image datawidth
- Image width
PTR_BM_ASIS Print the bitmap with one bitmap pixel per printer dot. Other Values Bitmap width expressed in the unit of measure given by MapMode.
alignment
- alignment
PTR_BM_LEFT PTR_BM_CENTER PTR_BM_RIGHT
JposException
java.io.IOException
public int setBitmap(int bitmapNumber, int station, java.lang.String fileName, int width, int alignment) throws java.io.IOException
bitmapNumber
- station
- The printer station to be used. May be either PTR_S_RECEIPT or PTR_S_SLIP.fileName
- width
- PTR_BM_ASIS or Othersalignment
-
java.io.IOException
public int setBarCodeWidth(int width, int dataLength)
width
- Barcode widthdataLength
- Barcode data lengthpublic int setBarCodeHeight(int height) throws JposException
height
- Barcode height
JposException
public int setBarCodeDataPosition(int position)
position
- Position to printing HRI characters(Barcode data).
PTR_BC_TEXT_NONE PTR_BC_TEXT_ABOVE PTR_BC_TEXT_BELOW
public byte getBarCodeSymbol(int symbol)
symbol
- Barcode symbol
PTR_BCS_UPCA PTR_BCS_UPCE PTR_BCS_EAN8 PTR_BCS_JAN8 PTR_BCS_EAN13 PTR_BCS_JAN13 PTR_BCS_ITF PTR_BCS_Codabar PTR_BCS_Code39 PTR_BCS_Code93 PTR_BCS_Code128
public int alignment(int align) throws JposException
align
- alignment position
JposException
public void selectPrinterModel(int productN)
productN
- see the SewooConstpublic int getMapMode()
public boolean getCapRecBarCode()
public int getRecLineWidth()
public int getRecLineChars()
public void sendMSRInit()
public void sendMSRMode(int mode)
public void sendMSRStatusCheck()
public void sendMSRtoNormalMode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |