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
      int scrAttrSet(byte attr)
      设置显示属性,正常显示或反白显示
      Set display properties, normal display or anti-white display
      void scrBackLight(byte mode)
      设置屏幕背光
      Set the screen backlight.
      void scrClrLine(byte startline, byte endline)
      清除指定的一行或若干行,参数不合理时无动作。
      Uninitialize the guest screen.
      void scrClrRect(int left, int top, int right, int bottom)
      清除矩形区域的显示信息。
      Clear the display of the rectangular area.
      void scrCls()
      清除整个屏幕
      Clear the entire screen.
      void scrDrawRect(int left, int top, int right, int bottom)
      画矩形。
      Draw the rectangle.
      void scrDrLogo(byte[] logo)
      将指定的点阵数据放到显示模块的缓冲区,适合显示 LOGO。
      Put the specified dot matrix data into the buffer of the display module, which is suitable for displaying the LOGO.
      void scrDrLogoEx(int left, int top, byte[] logo)
      在指定的坐标处显示LOGO]。
      Display LOGO at the specified coordinates .
      WLLcdDisplaySize scrGetLcdSize()
      读取 LCD 显示区域的大小
      Read the size of the LCD display area
      WLLcdCusorPosition scrGetxyEx()
      读取LCD上光标的当前位置
      Read the current position of the cursor on the LCD
      void scrGotoxy(byte x, byte y)
      将光标移到屏幕指定的位置
      Moves the cursor to the specified position on the screen.
      void scrGotoxyEx(int pixel_X, int pixel_Y)
      定位 LCD 显示光标
      Position the LCD display cursor.
      void scrGray(int mode)
      Deprecated. 
      此方法已过时
      This method is outdated
      设置显示屏幕的对比度。
      Set the contrast of the display screen.
      void scrInit()
      初始化客显屏
      Initialize the guest screen.
      void scrLcdDisplay(byte col, byte row, byte mode, java.lang.String display)
      在屏幕指定位置格式化显示字符串
      Format the display string at a specified location on the screen
      void scrLcdDisplay(int x, int y, java.lang.String display)
      在指定的屏幕位置显示字符串。
      Displays a string at the specified screen location.
      void scrLcdDisplay(java.lang.String display)
      在屏幕当前位置格式化显示字符串
      Format the display string at the current position on the screen.
      void scrPlot(byte x, byte y, byte color)
      在屏幕指定位置画点。
      Draw dots at specified locations on the screen.
      int scrRestore(byte mode)
      保存当前的屏幕显示内容或恢复上一次保存的屏幕显示内容 注:该函数不用于保存与恢复图标显示
      Save the current screen display or restore the last saved screen display.
      void scrSpaceSet(int charSpace, int lineSpace)
      设置显示的行间距和字间距。
      Sets the line spacing and word spacing for the display.
      void scrUninit()
      解除初始化客显屏
      Uninitialize the guest screen.
    • Method Detail

      • 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 coordinate
        y -
        y坐标
        y coordinate
        display -
        显示内容
        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 number
        row -
        显示的起始行号.注: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 supported
        mode -
        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
      • 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
      • 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
      • scrPlot

        void scrPlot(byte x,
                     byte y,
                     byte color)
              throws WLCustomerDisplayDevException
        在屏幕指定位置画点。
        Draw dots at specified locations on the screen.
        Parameters:
        x -
        横坐标
        Horizontal coordinate
        y -
        纵坐标
        Vertical coordinate
        color -
        指定动作。非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 coordinate
        top -
        纵坐标
        Vertical coordinate
        logo -
        Logo数据
        Logo datat
        Throws:
        WLCustomerDisplayDevException
        Since:
        V4.11.00