Java Code Examples for java.awt.im.InputMethodHighlight#UNSELECTED_CONVERTED_TEXT_HIGHLIGHT
The following examples show how to use
java.awt.im.InputMethodHighlight#UNSELECTED_CONVERTED_TEXT_HIGHLIGHT .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: X11InputMethod.java From dragonwell8_jdk with GNU General Public License v2.0 | 5 votes |
/** * Performs mapping from an XIM visible feedback value to Java IM highlight. * @return Java input method 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; }
Example 2
Source File: X11InputMethod.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
/** * Performs mapping from an XIM visible feedback value to Java IM highlight. * @return Java input method 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; }
Example 3
Source File: X11InputMethod.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
/** * Performs mapping from an XIM visible feedback value to Java IM highlight. * @return Java input method 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; }
Example 4
Source File: X11InputMethod.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
/** * Performs mapping from an XIM visible feedback value to Java IM highlight. * @return Java input method 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; }
Example 5
Source File: X11InputMethod.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
/** * Performs mapping from an XIM visible feedback value to Java IM highlight. * @return Java input method 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; }
Example 6
Source File: X11InputMethod.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** * Performs mapping from an XIM visible feedback value to Java IM highlight. * @return Java input method 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; }
Example 7
Source File: X11InputMethod.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
/** * Performs mapping from an XIM visible feedback value to Java IM highlight. * @return Java input method 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; }
Example 8
Source File: X11InputMethod.java From hottub with GNU General Public License v2.0 | 5 votes |
/** * Performs mapping from an XIM visible feedback value to Java IM highlight. * @return Java input method 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; }
Example 9
Source File: X11InputMethod.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
/** * Performs mapping from an XIM visible feedback value to Java IM highlight. * @return Java input method 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; }
Example 10
Source File: X11InputMethod.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
/** * Performs mapping from an XIM visible feedback value to Java IM highlight. * @return Java input method 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; }
Example 11
Source File: X11InputMethod.java From jdk8u_jdk with GNU General Public License v2.0 | 5 votes |
/** * Performs mapping from an XIM visible feedback value to Java IM highlight. * @return Java input method 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; }
Example 12
Source File: X11InputMethod.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
/** * Performs mapping from an XIM visible feedback value to Java IM highlight. * @return Java input method 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; }
Example 13
Source File: X11InputMethod.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 5 votes |
/** * Performs mapping from an XIM visible feedback value to Java IM highlight. * @return Java input method 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; }