public final class PrinterA
extends java.lang.Object
getInstance()
.
init()
uninit()
should be called to uninitialize the device.
Modifier and Type | Class and Description |
---|---|
static class |
PrinterA.BarcodeTitlePosition
Barcode title position
|
static class |
PrinterA.BitImage
Graphical
Limited:
1< horizontal pixel number<1023
((horizontal pixel count +7) /8) * ((vertical pixels +7) /8) *8<=4088
|
static class |
PrinterA.BitImagePrintMode
BitImage print mode
|
Modifier and Type | Method and Description |
---|---|
void |
feedPape(int points)
Feed paper
|
static PrinterA |
getInstance()
Get instance
|
java.lang.String |
getVersion()
Get version
|
java.lang.Boolean |
init()
Initialize
|
java.lang.Boolean |
isInitialized()
Is device initialized
|
java.lang.Boolean |
isPaperReady()
Paper status query
|
void |
printAndLineFeed()
Print and line feed.
|
void |
printBarcode(java.lang.String bc)
Print bar code, format for the Code39, the length of the bar code printing 1<=n<=11, only to support the number
|
void |
printBitImage(PrinterA.BitImagePrintMode imagePrintMode)
Print downloaded image, if no image downloaded, the instruction has no effect
[details] • This instruction has no effect when no image downloaded. |
void |
printCharacters(java.lang.String str)
Print the string, the printer support character set for the GB2312 standard 24 * 24 dot matrix font that covers the 6763 Chinese characters and 12*24 lattice of the English.
|
void |
setBarcodeHeight(int points)
Set bar code height
[1,255] |
void |
setBarcodeTitlePosition(PrinterA.BarcodeTitlePosition barcodeTitlePosition)
Set barcode title position
|
void |
setBitImage(PrinterA.BitImage images)
set bitimage
|
void |
setCharactorHeightScale(int scale)
Set charactor height scale.
|
void |
setCharactorWidthAndHeightScale(int scale)
Set charactor width and height scale.
|
void |
setCharactorWidthScale(int scale)
Set charactor width scale.
|
void |
setLeftMargin(int points)
Set left margin
|
void |
setLineSpacing(int points)
Set line spacing
Set n point line spacing , 0 < n < 255, default n = 3 Point is absolute value, not subject to enlarge or shrink command |
void |
setRightMargin(int points)
Set right margin
|
void |
setRightSideSpacingOfCharacter(int points)
Set character spacing
The command is the null point between the character set. |
void |
turnOverlineModeOnOrOff(boolean enable)
Allowed / forbidden to print on line.
|
void |
turnReverseModeOnOrOff(boolean enable)
Enable / disable white print.
|
void |
turnUnderlineModeOnOrOff(boolean enable)
Enable / disable underline printing.
|
void |
uninit()
Uninitialize
|
public static final PrinterA getInstance()
public java.lang.Boolean init()
public java.lang.Boolean isInitialized()
public void uninit()
public void feedPape(int points)
Feed paper n points(point is absolute value, not subject to enlarge or shrink command),1≤n≤255
public void setLineSpacing(int points)
public void setRightSideSpacingOfCharacter(int points)
public void setRightMargin(int points)
points
-
Should be in the 0 to the wide range of linepublic void setLeftMargin(int points)
points
-
Should be in the 0 to the wide range of line.public void setCharactorWidthScale(int scale)
public void setCharactorHeightScale(int scale)
public void setCharactorWidthAndHeightScale(int scale)
public void turnUnderlineModeOnOrOff(boolean enable)
public void turnOverlineModeOnOrOff(boolean enable)
public void turnReverseModeOnOrOff(boolean enable)
public java.lang.String getVersion()
public java.lang.Boolean isPaperReady()
public void printAndLineFeed()
public void setBarcodeTitlePosition(PrinterA.BarcodeTitlePosition barcodeTitlePosition)
public void setBarcodeHeight(int points)
public void printBarcode(java.lang.String bc)
public void printBitImage(PrinterA.BitImagePrintMode imagePrintMode)
public void printCharacters(java.lang.String str)
public void setBitImage(PrinterA.BitImage images) throws java.io.IOException
java.io.IOException