public abstract int getLocationOffset (int x, int y)

Gets the offset within the composed text for the specified absolute x and y coordinates on the screen. This information is used, for example to handle mouse clicks and the mouse cursor. The offset is relative to the composed text, so offset 0 indicates the beginning of the composed text.

Parameters:
x    the absolute x coordinate on screen
y    the absolute y coordinate on screen

Returns:  the offset in the composed text.