Interface ILogFormMobileInfoProvider
-
public interface ILogFormMobileInfoProvider
The mobile info provider.It provides information about mobile device.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Font
getDefaultFont(int averageCharWidth, int averageCharHeight)
Returns default font.LFMobileDeviceKind
getDeviceKind()
Returns the mobile device kind.int
getDPI()
Returns dots per inch.int
getHeight()
Returns the display height.int
getIndent(IndentKind indentKind)
Returns the standard indent, width or height.MobilePreviewInfo
getInfo()
Returns the mobile preview info.double
getInterfaceScale()
Returns the interface scale.ClientOSInfo
getOS()
Returns the device OS info.double
getStatusLineContentCf()
Returns the scale coefficient of the status bar content.int
getStatusLineHeight()
Returns the status line height.double
getSystemBarContentCf()
Returns the scale coefficient of the system bar content.int
getSystemBarHeight()
Returns the system bar height for the android devices that don't have physical buttons.int
getTitleHeight()
Returns the title height.int
getWidth()
Returns the display width.void
init(MobilePreviewInfo info, boolean rotated)
Initialisation.boolean
isRotated()
Returns whether the device is rotated or not.
-
-
-
Method Detail
-
init
void init(MobilePreviewInfo info, boolean rotated)
Initialisation.- Parameters:
info
- the mobile preview info, cannot benull
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 widthaverageCharHeight
- 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
-
-