private InputMethodHighlight convertVisualFeedbackToHighlight(int feedback){
  InputMethodHighlight highlight;
switch (feedback) {
case XIMUnderline:
    highlight=InputMethodHighlight.UNSELECTED_CONVERTED_TEXT_HIGHLIGHT;
  break;
case XIMReverse:
highlight=InputMethodHighlight.SELECTED_CONVERTED_TEXT_HIGHLIGHT;
break;
case XIMHighlight:
highlight=InputMethodHighlight.SELECTED_RAW_TEXT_HIGHLIGHT;
break;
case XIMPrimary:
highlight=InputMethodHighlight.UNSELECTED_CONVERTED_TEXT_HIGHLIGHT;
break;
case XIMSecondary:
highlight=InputMethodHighlight.SELECTED_CONVERTED_TEXT_HIGHLIGHT;
break;
case XIMTertiary:
highlight=InputMethodHighlight.SELECTED_RAW_TEXT_HIGHLIGHT;
break;
default :
highlight=InputMethodHighlight.SELECTED_RAW_TEXT_HIGHLIGHT;
break;
}
return highlight;
}

private InputMethodHighlight convertVisualFeedbackToHighlight ( int feedback ) { InputMethodHighlight highlight ; switch ( feedback ) { case XIMUnderline : highlight = InputMethodHighlight . UNSELECTED_CONVERTED_TEXT_HIGHLIGHT ; break ; case XIMReverse : highlight = InputMethodHighlight . SELECTED_CONVERTED_TEXT_HIGHLIGHT ; break ; case XIMHighlight : highlight = InputMethodHighlight . SELECTED_RAW_TEXT_HIGHLIGHT ; break ; case XIMPrimary : highlight = InputMethodHighlight . UNSELECTED_CONVERTED_TEXT_HIGHLIGHT ; break ; case XIMSecondary : highlight = InputMethodHighlight . SELECTED_CONVERTED_TEXT_HIGHLIGHT ; break ; case XIMTertiary : highlight = InputMethodHighlight . SELECTED_RAW_TEXT_HIGHLIGHT ; break ; default : highlight = InputMethodHighlight . SELECTED_RAW_TEXT_HIGHLIGHT ; break ; } return highlight ; }
performs mapping from an xim visible feedback value to java im highlight .
