StyledText.doMouseWordSelect

Returns the offset of the word at the specified offset. If the current selection extends from high index to low index (i.e., right to left, or caret is at left border of selection on non-bidi platforms) the start offset of the word preceding the selection is returned. If the current selection extends from low index to high index the end offset of the word following the selection is returned.

@param x mouse x location @param newCaretOffset caret offset of the mouse cursor location @param line line index of the mouse cursor location

class StyledText
package
int
doMouseWordSelect
(
int x
,,
int line
)

Meta