public abstract Point2D getTextLocation (int offset)

Gets the location of a specified offset in the current composed text, or of the selection in committed text. This information is, for example, used to position the candidate window near the composed text, or a composition window near the location where committed text will be inserted.

Parameters:
offset    the offset within the composed text, if there is composed text; null otherwise

Returns:  a point representing the screen location of the offset