Package ilcd
Class Size

Public Constructor Size

Size()

Size(int width, int height)

_INSERT_METHOD_SIGNATURE_HERE_

Description:

constructor Size():

The Size() constructor is used for predefined iLCD methods only. Don't use this constructor for general purpose. If this constructor is called to create a Size object for general purpose the stored values are undefined till the setHeight(int) and setWidth(int) methods are called. The getHeight() and getWidth() methods are used to obtain the values.

constructor Size(int width, int height):

Parameter Range Description
height -2.147.483.648 ... 2.147.483.647 the height value of a size object
width -2.147.483.648 ... 2.147.483.647 the width value of a size object

A new created Size object can be used to store a user defined size with a height and width. The setHeight(int) and setWidth(int) methods can be used to set new values during the lifetime of the Size object. The getHeight() and getWidth() methods are used to obtain the values which are assigned to the Size object.

Example

Size size = new Size(100, 99);

Draw.writeText("size height: " + size.getHeight() + "\r"

             + "size width:  " + size.getWidth());

See also:

Control.getDisplaySize()
Control.getTextExtent(String)
Control.getTextMessageExtent(String)
Control.getUnicodeTextExtent(String)
GraphicInfo.getSize()