Package ilcd
Class Control

Public Method getTextMessageExtent

static Size getTextMessageExtent(int messageIndex)

Throws:

static Size getTextMessageExtent(String name)

Throws:

_INSERT_METHOD_SIGNATURE_HERE_

Description:

by index:

Parameter Range Description
messageIndex 0 ... max. messageIndex index of the message stored in the iLCD

by name:

Parameter Range Description
messageName ASCII chars (0x01 .. 0xFF) name of the message

both methods return:

Returns Description
static Size size of the message

Both methods return the extent of a text message (stored in the iLCD via iLCD Manager XEJoC Manager) when drawn with the current font. The Size return type delivers the height and width values of the message.

Note

Example

Size textMessage = Control.getTextMessageExtent(0);

int height = textMessage.getHeight();

int width = textMessage.getWidth();

Alternatively a value can be optained with a single call:

int height = Control.getTextMessageExtent(0).getHeight();

int width = Control.getTextMessageExtent(0).getWidth();

See also:

Size
Control.getTextExtent(String)