Package ilcd
Class Control

Public Method getDisplaySize

static Size getDisplaySize()

_INSERT_METHOD_SIGNATURE_HERE_

Description:

Returns Description
static Size the size of the display

The getDisplaySize() method is used to obtain the size of the display. The Size return type delivers the height and width values of the display.

Note

Example

Size displaySize = Control.getDisplaySize();

int  height = displaySize.getHeight();

int  width  = displaySize.getWidth();

Alternatively a value can be optained with a single call:

int height = Control.getDisplaySize().getHeight();

int width  = Control.getDisplaySize().getWidth();

See also:

Size
Control.getDisplaySize()
Control.getTextExtent(String)
Control.getTextMessageExtent(int)
Control.getTextMessageExtent(String)
Control.getUnicodeTextExtent(String)