1 POSPrinter

Class Ax.pos.POSPrinter


Constructor Summary

MethodDescription
JSPOSPrinter()

Method Summary

Modifier and TypeMethodDescription
EscPosWriter build()

Method Detail

JSPOSPrinter

 JSPOSPrinter()

build

                        EscPosWriter build()
Returns:
access to the underlying EscPosWriter

2 POSImage

Class Ax.pos.POSImage


Wrapper to access EscPosImage generation

Constructor Summary

MethodDescription
JSPOSImage(Object data)

Method Summary

Modifier and TypeMethodDescription
int getHeight()
int getWidth()
JSPOSImage scale(double scale)
JSPOSImage scaleToFit(int width)
JSPOSImage setBitonalOrderedDither()Creates a new BitonalOrderedDither with default values.
JSPOSImage setBitonalOrderedDither(int matrixWidth, int matrixHeight)Creates a new BitonalOrderedDither with
JSPOSImage setBitonalThreshold(int threshold)
byte[] toGraphic()Graphics print Image commands using
byte[] toRaster()Raster bit Image commands using

Method Detail

JSPOSImage

 JSPOSImage(Object data)
Parameters:
data - 

getHeight

int getHeight()
Returns:

getWidth

int getWidth()
Returns:

scale

                        JSPOSImage scale(double scale)
Parameters:
scale - 
Returns:

scaleToFit

                        JSPOSImage scaleToFit(int width)
Parameters:
width - 
Returns:

setBitonalOrderedDither

                        JSPOSImage setBitonalOrderedDither()
Info:
Creates a new BitonalOrderedDither with default values.
Returns:

setBitonalOrderedDither

                        JSPOSImage setBitonalOrderedDither(int matrixWidth, int matrixHeight)
Info:
Creates a new BitonalOrderedDither with
Parameters:
matrixWidth - width of <code> ditherMatrix </code> must be &gt; 0
matrixHeight - height of <code> ditherMatrix </code> must be &gt; 0
Returns:

Example
Copy
ditherMatrix[matrixWidth][matrixHeight]
Example
Copy
width of ditherMatrix
Example
Copy
ditherMatrix

setBitonalThreshold

                        JSPOSImage setBitonalThreshold(int threshold)
Parameters:
threshold - unique threshold value with range 0 to 255.
Returns:

toGraphic

byte[] toGraphic()
Info:
Graphics print Image commands using
Returns:

Example
Copy
GS(L

toRaster

byte[] toRaster()
Info:
Raster bit Image commands using
Returns:

Example
Copy
GS 'v' '0'

3 POSBarcode

Class Ax.pos.POSBarcode


Constructor Summary

MethodDescription
JSPOSBarcode(String type)

Method Summary

Modifier and TypeMethodDescription
byte[] print(String data)
JSPOSBarcode setAlign(String align)
JSPOSBarcode setSize(int width, int height)
JSPOSBarcode setTextPosition(String position)

Method Detail

JSPOSBarcode

 JSPOSBarcode(String type)
Parameters:
type - 

print

byte[] print(String data)
Parameters:
data - 
Returns:

setAlign

                        JSPOSBarcode setAlign(String align)
Parameters:
align - 
Returns:

setSize

                        JSPOSBarcode setSize(int width, int height)
Parameters:
width - 
height - 
Returns:

setTextPosition

                        JSPOSBarcode setTextPosition(String position)
Parameters:
position - 
Returns:

4 POSQRCode

Class Ax.pos.POSQRCode


ESC POS QRCODE

Constructor Summary

MethodDescription
JSPOSQRCode()

Method Summary

Modifier and TypeMethodDescription
byte[] print(String data)
JSPOSQRCode setAlign(String align)
JSPOSQRCode setErrorCorrectionLevel(String level)
JSPOSQRCode setSize(int width)

Method Detail

JSPOSQRCode

 JSPOSQRCode()

print

byte[] print(String data)
Parameters:
data - 
Returns:

setAlign

                        JSPOSQRCode setAlign(String align)
Parameters:
align - 
Returns:

setErrorCorrectionLevel

                        JSPOSQRCode setErrorCorrectionLevel(String level)
Parameters:
level - 
Returns:

setSize

                        JSPOSQRCode setSize(int width)
Parameters:
width - 
Returns:

5 POSPDF417

Class Ax.pos.POSPDF417


ESC POS PDF417

Constructor Summary

MethodDescription
JSPOSPDF417()

Method Summary

Modifier and TypeMethodDescription
byte[] print(String data)
JSPOSPDF417 setAlign(String align)
JSPOSPDF417 setErrorCorrectionLevel(String level)
JSPOSPDF417 setSize(int width, int height)

Method Detail

JSPOSPDF417

 JSPOSPDF417()

print

byte[] print(String data)
Parameters:
data - 
Returns:

setAlign

                        JSPOSPDF417 setAlign(String align)
Parameters:
align - 
Returns:

setErrorCorrectionLevel

                        JSPOSPDF417 setErrorCorrectionLevel(String level)
Parameters:
level - 
Returns:

setSize

                        JSPOSPDF417 setSize(int width, int height)
Parameters:
width - 
height - 
Returns:

6 Label

Class Ax.pos.zebra.Label


Constructor Summary

MethodDescription
JSZebraLabel()
JSZebraLabel(int width, int height)

Method Summary

Modifier and TypeMethodDescription
ZebraBarCode128 addCode128(int positionX, int positionY, String text)
ZebraBarCode39 addCode39(int positionX, int positionY, String text)
ZebraComment addComment(String text)
ZebraGraficBox addGraphicBox(int positionX, int positionY, int width, int height)
ZebraGraficBox addGraphicBox(int positionX, int positionY, int width, int height, int borderThickness)
ZebraNativeZpl addNative(String code)
ZebraReverse addReverse()
ZebraText addText(String text)
ZebraText addText(String text, int fontSize)
ZebraText addText(int positionX, int positionY, String text)
ZebraText addText(int positionX, int positionY, String text, int fontSize)
ZebraChangeFont changeFont(String font, int fontSize)
String toZPL()

Method Detail

JSZebraLabel

 JSZebraLabel()

JSZebraLabel

 JSZebraLabel(int width, int height)
Parameters:
width - 
height - 

addCode128

                        ZebraBarCode128 addCode128(int positionX, int positionY, String text)
Parameters:
positionX - 
positionY - 
text - 
Returns:

addCode39

                        ZebraBarCode39 addCode39(int positionX, int positionY, String text)
Parameters:
positionX - 
positionY - 
text - 
Returns:

addComment

                        ZebraComment addComment(String text)
Parameters:
text - 
Returns:

addGraphicBox

                        ZebraGraficBox addGraphicBox(int positionX, int positionY, int width, int height)
Parameters:
positionX - 
positionY - 
width - 
height - 
Returns:

addGraphicBox

                        ZebraGraficBox addGraphicBox(int positionX, int positionY, int width, int height, int borderThickness)
Parameters:
positionX - 
positionY - 
width - 
height - 
borderThickness - 
Returns:

addNative

                        ZebraNativeZpl addNative(String code)
Parameters:
code - 
Returns:

addReverse

                        ZebraReverse addReverse()
Returns:

addText

                        ZebraText addText(String text)
Parameters:
text - 
Returns:

addText

                        ZebraText addText(String text, int fontSize)
Parameters:
text - 
fontSize - 
Returns:

addText

                        ZebraText addText(int positionX, int positionY, String text)
Parameters:
positionX - 
positionY - 
text - 
Returns:

addText

                        ZebraText addText(int positionX, int positionY, String text, int fontSize)
Parameters:
positionX - 
positionY - 
text - 
fontSize - 
Returns:

changeFont

                        ZebraChangeFont changeFont(String font, int fontSize)
Parameters:
font - 
fontSize - 
Returns:

toZPL

                        String toZPL()
Returns: