com.pax.dal
Interface IWLCustomerDisplay
-
public interface IWLCustomerDisplay
如果开启权限检查,需在AndroidManifest下添加权限:"com.pax.permission.LCD"If permission check is enabled, you need to add permission under AndroidManifest: "com.pax.permission.LCD".
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method and Description intscrAttrSet(byte attr)设置显示属性,正常显示或反白显示Set display properties, normal display or anti-white displayvoidscrBackLight(byte mode)设置屏幕背光Set the screen backlight.voidscrClrLine(byte startline, byte endline)清除指定的一行或若干行,参数不合理时无动作。Uninitialize the guest screen.voidscrClrRect(int left, int top, int right, int bottom)清除矩形区域的显示信息。Clear the display of the rectangular area.voidscrCls()清除整个屏幕Clear the entire screen.voidscrDrawRect(int left, int top, int right, int bottom)画矩形。Draw the rectangle.voidscrDrLogo(byte[] logo)将指定的点阵数据放到显示模块的缓冲区,适合显示 LOGO。Put the specified dot matrix data into the buffer of the display module, which is suitable for displaying the LOGO.voidscrDrLogoEx(int left, int top, byte[] logo)在指定的坐标处显示LOGO]。Display LOGO at the specified coordinates .WLLcdDisplaySizescrGetLcdSize()读取 LCD 显示区域的大小Read the size of the LCD display areaWLLcdCusorPositionscrGetxyEx()读取LCD上光标的当前位置Read the current position of the cursor on the LCDvoidscrGotoxy(byte x, byte y)将光标移到屏幕指定的位置Moves the cursor to the specified position on the screen.voidscrGotoxyEx(int pixel_X, int pixel_Y)定位 LCD 显示光标Position the LCD display cursor.voidscrGray(int mode)Deprecated.此方法已过时This method is outdated设置显示屏幕的对比度。Set the contrast of the display screen.voidscrInit()初始化客显屏Initialize the guest screen.voidscrLcdDisplay(byte col, byte row, byte mode, java.lang.String display)在屏幕指定位置格式化显示字符串Format the display string at a specified location on the screenvoidscrLcdDisplay(int x, int y, java.lang.String display)在指定的屏幕位置显示字符串。Displays a string at the specified screen location.voidscrLcdDisplay(java.lang.String display)在屏幕当前位置格式化显示字符串Format the display string at the current position on the screen.voidscrPlot(byte x, byte y, byte color)在屏幕指定位置画点。Draw dots at specified locations on the screen.intscrRestore(byte mode)保存当前的屏幕显示内容或恢复上一次保存的屏幕显示内容 注:该函数不用于保存与恢复图标显示Save the current screen display or restore the last saved screen display.voidscrSpaceSet(int charSpace, int lineSpace)设置显示的行间距和字间距。Sets the line spacing and word spacing for the display.voidscrUninit()解除初始化客显屏Uninitialize the guest screen.
-
-
-
Method Detail
-
scrInit
void scrInit() throws WLCustomerDisplayDevException
初始化客显屏Initialize the guest screen.- Throws:
WLCustomerDisplayDevException- Since:
- V4.11.00
-
scrUninit
void scrUninit() throws WLCustomerDisplayDevException
解除初始化客显屏Uninitialize the guest screen.- Throws:
WLCustomerDisplayDevException- Since:
- V4.11.00
-
scrClrLine
void scrClrLine(byte startline, byte endline) throws WLCustomerDisplayDevException
清除指定的一行或若干行,参数不合理时无动作。Uninitialize the guest screen.- Parameters:
startline-开始行数Start lineendline-结束行数End line- Throws:
WLCustomerDisplayDevException- Since:
- V4.11.00
-
scrGotoxyEx
void scrGotoxyEx(int pixel_X, int pixel_Y) throws WLCustomerDisplayDevException
定位 LCD 显示光标Position the LCD display cursor.- Parameters:
pixel_X-x坐标x coordinatepixel_Y-y坐标y coordinate- Throws:
WLCustomerDisplayDevException- Since:
- V4.11.00
-
scrGotoxy
void scrGotoxy(byte x, byte y) throws WLCustomerDisplayDevException
将光标移到屏幕指定的位置Moves the cursor to the specified position on the screen.- Parameters:
x-x坐标x coordinatey-y坐标y coordinate- Throws:
WLCustomerDisplayDevException- Since:
- V4.11.00
-
scrLcdDisplay
void scrLcdDisplay(java.lang.String display) throws WLCustomerDisplayDevException
在屏幕当前位置格式化显示字符串Format the display string at the current position on the screen.- Parameters:
display-显示内容Display content- Throws:
WLCustomerDisplayDevException- Since:
- V4.11.00
-
scrLcdDisplay
void scrLcdDisplay(int x, int y, java.lang.String display) throws WLCustomerDisplayDevException
在指定的屏幕位置显示字符串。Displays a string at the specified screen location.- Parameters:
x-x坐标x coordinatey-y坐标y coordinatedisplay-显示内容Display content- Throws:
WLCustomerDisplayDevException- Since:
- V4.11.00
-
scrLcdDisplay
void scrLcdDisplay(byte col, byte row, byte mode, java.lang.String display) throws WLCustomerDisplayDevException
在屏幕指定位置格式化显示字符串Format the display string at a specified location on the screen- Parameters:
col-显示的起始点阵列号Display starting point array numberrow-显示的起始行号.注:8个像素点为1行,需要屏幕分辨率看支持显示几行The start line number displayed. Note: 8 pixels are 1 line, and the screen resolution is required to see how many lines are supportedmode-Bit0:字体设置,为0-ASCII字体,1-CFONT 字体;Bit1~Bit6:预留;Bit7:显示属性,0-正常显示,1-反显。 0x00-ASCII/正常显示 ;0x01-CFONT/正常显示; 0x80-ASCII/反显; 0x81-CFONT/反显Bit0: Font setting, 0-ASCII font, 1-CFONT font; Bit1~Bit6: reserved; Bit7: Display attribute, 0- normal display, 1- reverse display 0x00-ASCII/ Normal display; 0x01-CFONT/ Normal display; 0x80-ASCII/ reverse display; 0x81-CFONT/ Reverse display.display-显示内容,注:参数col、row超出屏幕范围时,不显示;指定的字体、属性及坐标仅对本函数有效.要显示"%"时,需要2个%号,即"%%"Display content,Note: When the parameters col and row exceed the screen range, they will not be displayed; The specified fonts, properties, and coordinates are valid only for this function. To display "%", you need 2 % signs, i.e. "%%"- Throws:
WLCustomerDisplayDevException- Since:
- V4.11.00
-
scrCls
void scrCls() throws WLCustomerDisplayDevException
清除整个屏幕Clear the entire screen.- Throws:
WLCustomerDisplayDevException- Since:
- V4.11.00
-
scrGray
void scrGray(int mode) throws WLCustomerDisplayDevException
Deprecated.此方法已过时This method is outdated设置显示屏幕的对比度。Set the contrast of the display screen.- Parameters:
mode-对比度级别[0~7,0最暗,7最亮]Contrast level [0 to 7,0 darkest,7 brightest]- Throws:
WLCustomerDisplayDevException- Since:
- V4.11.00
-
scrBackLight
void scrBackLight(byte mode) throws WLCustomerDisplayDevException
设置屏幕背光Set the screen backlight.- Parameters:
mode-[0~1] 0-灭屏;1-亮屏[0~1] 0- Off the screen. 1- Light the screen- Throws:
WLCustomerDisplayDevException- Since:
- V4.11.00
-
scrAttrSet
int scrAttrSet(byte attr) throws WLCustomerDisplayDevException
设置显示属性,正常显示或反白显示Set display properties, normal display or anti-white display- Parameters:
attr-属性值 0:以正常方式显示; 非0:以反白方式显示0: displayed normally; Non-0: Displayed in reverse white mode- Returns:
- 返回上一次设置的值Returns the last value set
- Throws:
WLCustomerDisplayDevException- Since:
- V4.11.00
-
scrRestore
int scrRestore(byte mode) throws WLCustomerDisplayDevException
保存当前的屏幕显示内容或恢复上一次保存的屏幕显示内容 注:该函数不用于保存与恢复图标显示Save the current screen display or restore the last saved screen display. Note: This function is not used to save and restore icon display- Parameters:
mode-0:保存; >=1:恢复0: save; >=1: Recovery- Returns:
- 0x00 成功; 其它值: 失败(如恢复前没有保存内容)0x00 Success; Other value: Failure (e.g. not saving before resuming)
- Throws:
WLCustomerDisplayDevException- Since:
- V4.11.00
-
scrGetLcdSize
WLLcdDisplaySize scrGetLcdSize() throws WLCustomerDisplayDevException
读取 LCD 显示区域的大小Read the size of the LCD display area- Returns:
WLLcdDisplaySize- Throws:
WLCustomerDisplayDevException- Since:
- V4.11.00
-
scrGetxyEx
WLLcdCusorPosition scrGetxyEx() throws WLCustomerDisplayDevException
读取LCD上光标的当前位置Read the current position of the cursor on the LCD- Returns:
WLLcdCusorPosition- Throws:
WLCustomerDisplayDevException- Since:
- V4.11.00
-
scrPlot
void scrPlot(byte x, byte y, byte color) throws WLCustomerDisplayDevException
在屏幕指定位置画点。Draw dots at specified locations on the screen.- Parameters:
x-横坐标Horizontal coordinatey-纵坐标Vertical coordinatecolor-指定动作。非0:画点;0:擦点Specify the action. Non-0: draw points; 0: Rub point- Throws:
WLCustomerDisplayDevException- Since:
- V4.11.00
-
scrDrLogo
void scrDrLogo(byte[] logo) throws WLCustomerDisplayDevException
将指定的点阵数据放到显示模块的缓冲区,适合显示 LOGO。Put the specified dot matrix data into the buffer of the display module, which is suitable for displaying the LOGO.- Parameters:
logo-Logo数据Logo datat- Throws:
WLCustomerDisplayDevException- Since:
- V4.11.00
-
scrDrLogoEx
void scrDrLogoEx(int left, int top, byte[] logo) throws WLCustomerDisplayDevException
在指定的坐标处显示LOGO]。Display LOGO at the specified coordinates .- Parameters:
left-横坐标Horizontal coordinatetop-纵坐标Vertical coordinatelogo-Logo数据Logo datat- Throws:
WLCustomerDisplayDevException- Since:
- V4.11.00
-
scrDrawRect
void scrDrawRect(int left, int top, int right, int bottom) throws WLCustomerDisplayDevException
画矩形。Draw the rectangle.- Parameters:
left-左Lefttop-顶Topright-右Rightbottom-底Bottom- Throws:
WLCustomerDisplayDevException- Since:
- V4.11.00
-
scrClrRect
void scrClrRect(int left, int top, int right, int bottom) throws WLCustomerDisplayDevException
清除矩形区域的显示信息。Clear the display of the rectangular area.- Parameters:
left-左Lefttop-顶Topright-右Rightbottom-底Bottom- Throws:
WLCustomerDisplayDevException- Since:
- V4.11.00
-
scrSpaceSet
void scrSpaceSet(int charSpace, int lineSpace) throws WLCustomerDisplayDevException
设置显示的行间距和字间距。Sets the line spacing and word spacing for the display.- Parameters:
charSpace-字间距Word spacinglineSpace-行间距Row spacing- Throws:
WLCustomerDisplayDevException- Since:
- V4.11.00
-
-