Package ilcd
Class Position

Public Method getY

int getY()

_INSERT_METHOD_SIGNATURE_HERE_

Description:

Returns Description
Y the stored y value within a new created Position object

A new created Position object can be used to save the current cursor position. A new cursor position is assigned to a Position object when the Control.getCursorPosition() method is called. Once a Position object is created, the x and y values at the objects creation time will be stored into the Position object for further use. The Control.getCursorPosition() method returns a Position object which contains the x, and y coordinate of the display.

Example

Position pos = Control.getCursorPosition();

Draw.writeText("stored y position: " + pos.getY());

See also:

Control.getCursorPosition()