public abstract class CustomerDisplay
extends java.lang.Object
Constructors and instructions |
---|
CustomerDisplay() |
Qualifiers and types | Methods and instructions |
---|---|
abstract void |
clear()
Empty the display, the cursor position is unchanged
|
abstract void |
close()
Close the interface.
|
abstract void |
displayImage(byte[] buffer)
Display graphics (black and white bitmap), can be used to display two-dimensional code.
|
abstract boolean |
getBacklight()
Get the backlight switch status
|
abstract int |
getBacklightTimeout()
Get the time to automatically turn off the backlight
|
abstract int |
getCursorCol()
Gets the column coordinates of the cursor position
|
abstract int |
getCursorRow()
Gets the row coordinates of the cursor position
|
abstract java.lang.String |
getError()
Get device error message (no longer used)
|
abstract int |
getNumCol()
Get the number of columns
|
abstract int |
getNumRow()
Get the number of rows
|
static CustomerDisplay |
newInstance()
Create a CustomerDisplay instance
|
abstract void |
reset()
Control the customer display reset, including the cursor reset to the origin, clear the display.
|
abstract void |
setBacklight(boolean on)
Set the customer display backlight on and off
|
abstract void |
setBacklightTimeout(int timeout_s)
Set the backlight to automatically delay the time off the customer should not turn off the backlight when not in use
|
abstract void |
setCursorPos(int row,
int col)
Set the cursor position coordinates
|
abstract int |
write(java.lang.String text)
Displays the string at the current cursor position
Note: Chinese characters can only be displayed in even-numbered coordinates. |
public static CustomerDisplay newInstance() throws java.lang.Throwable
java.lang.Exception
java.lang.Throwable
public abstract java.lang.String getError()
public abstract void clear()
public abstract void reset()
public abstract void setCursorPos(int row,int col)
row
- Line coordinates, 0 for the first linecol
- Column coordinates, 0 for the first columnpublic abstract int write(java.lang.String text)
text
- Stringpublic abstract void setBacklight(boolean on)
true:Open,
- false:Closepublic abstract void setBacklightTimeout(int timeout_s)
timeout_s
- Delay time (in seconds)public abstract int getNumRow()
public abstract int getNumCol()
public abstract int getCursorRow()
public abstract int getCursorCol()
public abstract int getBacklightTimeout()
public abstract boolean getBacklight()
public abstract void close()
public abstract void displayImage(byte[] buffer)
buffer
- Bitmap array