public InputMethodHighlight (boolean selected, int state, int variation, Map<TextAttribute, ?> style)

Constructs an input method highlight record. The style attributes map provided must be unmodifiable.

Parameters:
selected    whether the text range is selected
state    the conversion state for the text range - RAW_TEXT or CONVERTED_TEXT
variation    the variation for the text range
style    the rendering style attributes for the text range, or null

Exceptions:
IllegalArgumentException    if a state other than RAW_TEXT or CONVERTED_TEXT is given

See also:
InputMethodHighlight.RAW_TEXT, InputMethodHighlight.CONVERTED_TEXT

Since:  1.3