Package java.awt.im

Examples of java.awt.im.InputMethodHighlight


            if (value != null) {
                if (value instanceof Annotation) {
                    value = ((Annotation)value).getValue();
                }

                InputMethodHighlight hl;
                hl = (InputMethodHighlight) value;

                Map imStyles = null;
                try {
                    imStyles = hl.getStyle();
                } catch (NoSuchMethodError e) {
                }
               
                if (imStyles == null) {
                    Toolkit tk = Toolkit.getDefaultToolkit();
View Full Code Here


            if (val instanceof Annotation) {
                val = ((Annotation) val).getValue();
            }

            if (val instanceof InputMethodHighlight) {
                InputMethodHighlight ihl = ((InputMethodHighlight) val);
                styles = ihl.getStyle();

                if (styles == null) {
                    Toolkit tk = Toolkit.getDefaultToolkit();
                    styles = tk.mapInputMethodHighlight(ihl);
                }
View Full Code Here

            if (value != null) {
                if (value instanceof Annotation) {
                    value = ((Annotation)value).getValue();
                }

                InputMethodHighlight hl;
                hl = (InputMethodHighlight) value;

                Map imStyles = null;
                try {
                    imStyles = hl.getStyle();
                } catch (NoSuchMethodError e) {
                }

                if (imStyles == null) {
                    Toolkit tk = Toolkit.getDefaultToolkit();
View Full Code Here

     * If this has an imHighlight, create copy of this with those attributes
     * applied to it.  Otherwise return this unchanged.
     */
    public AttributeValues applyIMHighlight() {
        if (imHighlight != null) {
            InputMethodHighlight hl = null;
            if (imHighlight instanceof InputMethodHighlight) {
                hl = (InputMethodHighlight)imHighlight;
            } else {
                hl = (InputMethodHighlight)((Annotation)imHighlight).getValue();
            }

            Map imStyles = hl.getStyle();
            if (imStyles == null) {
                Toolkit tk = Toolkit.getDefaultToolkit();
                imStyles = tk.mapInputMethodHighlight(hl);
            }

View Full Code Here

            if (val instanceof Annotation) {
                val = ((Annotation) val).getValue();
            }

            if (val instanceof InputMethodHighlight) {
                InputMethodHighlight ihl = ((InputMethodHighlight) val);
                styles = ihl.getStyle();

                if (styles == null) {
                    Toolkit tk = Toolkit.getDefaultToolkit();
                    styles = tk.mapInputMethodHighlight(ihl);
                }
View Full Code Here

            if (val instanceof Annotation) {
                val = ((Annotation) val).getValue();
            }

            if (val instanceof InputMethodHighlight) {
                InputMethodHighlight ihl = ((InputMethodHighlight) val);
                styles = ihl.getStyle();

                if (styles == null) {
                    Toolkit tk = Toolkit.getDefaultToolkit();
                    styles = tk.mapInputMethodHighlight(ihl);
                }
View Full Code Here

            if (val instanceof Annotation) {
                val = ((Annotation) val).getValue();
            }

            if (val instanceof InputMethodHighlight) {
                InputMethodHighlight ihl = ((InputMethodHighlight) val);
                styles = ihl.getStyle();

                if (styles == null) {
                    Toolkit tk = Toolkit.getDefaultToolkit();
                    styles = tk.mapInputMethodHighlight(ihl);
                }
View Full Code Here

     * If this has an imHighlight, create copy of this with those attributes
     * applied to it.  Otherwise return this unchanged.
     */
    public AttributeValues applyIMHighlight() {
        if (imHighlight != null) {
            InputMethodHighlight hl = null;
            if (imHighlight instanceof InputMethodHighlight) {
                hl = (InputMethodHighlight)imHighlight;
            } else {
                hl = (InputMethodHighlight)((Annotation)imHighlight).getValue();
            }

            Map imStyles = hl.getStyle();
            if (imStyles == null) {
                Toolkit tk = Toolkit.getDefaultToolkit();
                imStyles = tk.mapInputMethodHighlight(hl);
            }

View Full Code Here

    /**
     * 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;
View Full Code Here

    /**
     * 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;
View Full Code Here

TOP

Related Classes of java.awt.im.InputMethodHighlight

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.