Interface ILogFormMobileInfoProvider


  • public interface ILogFormMobileInfoProvider
    The mobile info provider.

    It provides information about mobile device.

    • Method Detail

      • init

        void init​(MobilePreviewInfo info,
                  boolean rotated)
        Initialisation.
        Parameters:
        info - the mobile preview info, cannot be null
        rotated - the rotated flag
      • getDeviceKind

        LFMobileDeviceKind getDeviceKind()
        Returns the mobile device kind.
        Returns:
        mobile device kind, cannot be null
      • getOS

        ClientOSInfo getOS()
        Returns the device OS info.
        Returns:
        device OS info, cannot be null
      • getWidth

        int getWidth()
        Returns the display width.
        Returns:
        display width
      • getHeight

        int getHeight()
        Returns the display height.
        Returns:
        display height
      • getDPI

        int getDPI()
        Returns dots per inch.
        Returns:
        dpi
      • getDefaultFont

        Font getDefaultFont​(int averageCharWidth,
                            int averageCharHeight)
        Returns default font.
        Parameters:
        averageCharWidth - the average char width
        averageCharHeight - the average char height
        Returns:
        default font, can be null
      • getIndent

        int getIndent​(IndentKind indentKind)
        Returns the standard indent, width or height.
        Parameters:
        indentKind - the indent kind
        Returns:
        indent
      • getInfo

        MobilePreviewInfo getInfo()
        Returns the mobile preview info.
        Returns:
        mobile preview info, can be null
      • getInterfaceScale

        double getInterfaceScale()
        Returns the interface scale.
        Returns:
        interface scale.
      • getStatusLineHeight

        int getStatusLineHeight()
        Returns the status line height.
        Returns:
        status line height.
      • getStatusLineContentCf

        double getStatusLineContentCf()
        Returns the scale coefficient of the status bar content.
        Returns:
        scale coefficient
      • getSystemBarHeight

        int getSystemBarHeight()
        Returns the system bar height for the android devices that don't have physical buttons.
        Returns:
        system bar
      • getSystemBarContentCf

        double getSystemBarContentCf()
        Returns the scale coefficient of the system bar content.
        Returns:
        scale coefficient
      • getTitleHeight

        int getTitleHeight()
        Returns the title height.
        Returns:
        title height
      • isRotated

        boolean isRotated()
        Returns whether the device is rotated or not.
        Returns:
        true when the device is rotated