|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sewoo.jpos.command.CPCL
public class CPCL
CPCL Command for Mobile Printer.
Constructor Summary | |
---|---|
CPCL()
|
Method Summary | |
---|---|
void |
clearBuffer()
|
void |
concatText(int fontType,
int fontSize,
int offset,
java.lang.String data)
Used for defining the font to concatenate. |
java.lang.StringBuffer |
getBuffer()
|
void |
inverseLine(int xs,
int ys,
int xx,
int yx,
int thickness)
Used for the inverse image in special area. |
void |
multiLineData(java.lang.String data)
Used for printing text to print the value which is defined in multiLineText(). |
void |
multiLineText(int rotation,
int fontType,
int fontSize,
int printX,
int printY)
Used for printing text which is defined as setMultiLine(). |
void |
printBox(int xs,
int ys,
int xx,
int yx,
int thickness)
Used for printing box image. |
void |
printCPCL2DBarCode(int rotation,
java.lang.String barcodeType,
int printX,
int printY,
int unitWidth,
int unitHeight,
int column,
int securityLevel,
java.lang.String data)
Used for printing two-dimension barcode. |
void |
printCPCLBarcode(int rotation,
java.lang.String barcodeType,
int NB,
int ratio,
int barHeight,
int printX,
int printY,
java.lang.String data,
int count)
Used for printing barcode. |
void |
printCPCLImage(java.lang.String imageName,
int printX,
int printY)
Used for printing pcx image stored in flash file system of the printer. |
void |
printCPCLText(int rotation,
int fontType,
int fontSize,
int printX,
int printY,
java.lang.String data,
int count)
used for printing text in a specified location on the form. |
void |
printForm()
Used for setting the paper at the top of the form after printing. |
void |
printGraphic(int bytesWidth,
int dotHeight,
int printX,
int printY,
byte[] bitmap)
Used for Bit-mapped image printing. |
void |
printLine(int xs,
int ys,
int xx,
int yx,
int thickness)
Used for printing line image. |
void |
resetConcat()
Used for canceling text concatenation. |
void |
resetCountry()
reset the COUNTRY control. |
void |
resetMagnify()
Used for canceling the defined method in setMagnify(). |
void |
resetMultiLine()
Used for canceling the defined method in setMultiLine(). |
void |
setConcat(int contcatMode,
int printX,
int printY)
Used for defining the start of the text concatenation and the printing position. |
void |
setContrast(int darkness)
Used for adjusting contrast of the whole label to print. |
void |
setCountry(java.lang.String country)
The COUNTRY control command substitutes the appropriate character set for the specified country. |
void |
setCPCLBarcode(int fontNum,
int fontSize,
int offset)
Used for setting HRI character information. |
void |
setForm(int horizonOffset,
int resolX,
int resolY,
int labelHeight,
int quantity)
Used for defining paper form. |
void |
setFormMode()
Used for declaring using form paper. |
void |
setJournalMode()
Used for declaring Journal Mode. |
void |
setJustification(int justify)
Used for setting justification of fields. |
void |
setMagnify(int width,
int height)
Used for setting the magnification of text. |
void |
setMeasure(int measure)
Used for setting measure of command. |
void |
setMedia(int mode)
This method is used to set Label Type to print. |
void |
setMultiLine(int lineHeight)
Used for defining multi-line printing with same line length and same font. |
void |
setPageWidth(int pageWidth)
Used for defining the width of the paper form. |
void |
setPattern(int patternNum)
Used for pattern printing. |
void |
setSpeed(int speed)
Used for defining printing speed. |
void |
setTone(int tone)
Used instead of setContrast() and it is used for adjusting the darkness of the whole label to print. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CPCL()
Method Detail |
---|
public void clearBuffer()
public java.lang.StringBuffer getBuffer()
public void setForm(int horizonOffset, int resolX, int resolY, int labelHeight, int quantity)
horizonOffset
- resolX
- resolY
- labelHeight
- quantity
- public void printForm()
public void setMeasure(int measure)
measure
- public void setJustification(int justify)
justify
- public void printCPCLText(int rotation, int fontType, int fontSize, int printX, int printY, java.lang.String data, int count)
rotation
- fontType
- fontSize
- printX
- printY
- data
- count
- public void setConcat(int contcatMode, int printX, int printY)
contcatMode
- printX
- printY
- public void concatText(int fontType, int fontSize, int offset, java.lang.String data)
fontType
- fontSize
- offset
- data
- public void resetConcat()
public void setMultiLine(int lineHeight)
lineHeight
- public void multiLineText(int rotation, int fontType, int fontSize, int printX, int printY)
rotation
- fontType
- fontSize
- printX
- printY
- public void multiLineData(java.lang.String data)
data
- public void resetMultiLine()
public void setMagnify(int width, int height)
width
- height
- public void resetMagnify()
public void setFormMode()
public void setJournalMode()
public void printCPCLBarcode(int rotation, java.lang.String barcodeType, int NB, int ratio, int barHeight, int printX, int printY, java.lang.String data, int count)
rotation
- barcodeType
- NB
- ratio
- barHeight
- printX
- printY
- data
- count
- public void printBox(int xs, int ys, int xx, int yx, int thickness)
xs
- ys
- xx
- yx
- thickness
- public void printLine(int xs, int ys, int xx, int yx, int thickness)
xs
- ys
- xx
- yx
- thickness
- public void inverseLine(int xs, int ys, int xx, int yx, int thickness)
xs
- ys
- xx
- yx
- thickness
- public void setPattern(int patternNum)
patternNum
- public void printGraphic(int bytesWidth, int dotHeight, int printX, int printY, byte[] bitmap)
bytesWidth
- dotHeight
- printX
- printY
- bitmap
- public void setContrast(int darkness)
darkness
- - LK_CPCL_CONT_DEFAULT, LK_CPCL_CONT_MEDIUM,
LK_CPCL_CONT_DARK, LK_CPCL_CONT_VERY_DARK.public void setPageWidth(int pageWidth)
pageWidth
- public void printCPCLImage(java.lang.String imageName, int printX, int printY)
imageName
- printX
- printY
- public void setSpeed(int speed)
speed
- 0 - 5public void setTone(int tone)
tone
- LK_CPCL_
Contrast to Tone level equivalents. Contrast 0 = Tone 0
Contrast 1 = Tone 100 Contrast 2 = Tone 200 Contrast 3 = No
equivalentpublic void setCPCLBarcode(int fontNum, int fontSize, int offset)
fontNum
- fontSize
- offset
- public void printCPCL2DBarCode(int rotation, java.lang.String barcodeType, int printX, int printY, int unitWidth, int unitHeight, int column, int securityLevel, java.lang.String data)
Rotation
- BarCodeType
- PrintX
- PrintY
- UnitWidth
- UnitHeight
- Column
- SecurityLevel
- Data
- public void setMedia(int mode)
mode
- It sets the Label Type.
LK_CPCL_LABEL(=0) Label with Gap.
LK_CPCL_BLACKMARK(=1) Label with Black Mark.
LK_CPCL_CONTINUOUS(=2) Continuous Labelpublic void setCountry(java.lang.String country)
country
- USA, GERMANY, FRANCE, SWEDEN, SPAIN, NORWAY, ITALY, UK, CP850, LATIN9public void resetCountry()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |