2362N/A * Copyright (c) 1997, 2008, Oracle and/or its affiliates. All rights reserved. 0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 0N/A * This code is free software; you can redistribute it and/or modify it 0N/A * under the terms of the GNU General Public License version 2 only, as 2362N/A * published by the Free Software Foundation. Oracle designates this 0N/A * particular file as subject to the "Classpath" exception as provided 2362N/A * by Oracle in the LICENSE file that accompanied this code. 0N/A * This code is distributed in the hope that it will be useful, but WITHOUT 0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 0N/A * version 2 for more details (a copy is included in the LICENSE file that 0N/A * accompanied this code). 0N/A * You should have received a copy of the GNU General Public License version 0N/A * 2 along with this work; if not, write to the Free Software Foundation, 0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2362N/A * or visit www.oracle.com if you need additional information or have any 0N/A * A composition area is used to display text that's being composed 0N/A * using an input method in its own user interface environment, 0N/A * typically in a root window. 0N/A * @author JavaSoft International 635N/A// This class is final due to the 6607310 fix. Refer to the CR for details. 0N/A // create composition window with localized title 0N/A // if we get the focus, we still want to let the client's 0N/A // input context handle the event 0N/A * Sets the composition area handler that currently owns this 0N/A * composition area, and its input context. 0N/A * @see java.awt.Component#getInputMethodRequests 0N/A // returns a 0-width rectangle 0N/A // returns true if composition area is visible 0N/A // workaround for the Solaris focus lost problem 0N/A // InputMethodListener methods - just forward to the current handler 0N/A * Sets the text and caret to be displayed in this composition area. 0N/A * Shows the window if it contains text, hides it if not. 0N/A // there's no composed text to display, so hide the window 0N/A /* since we have composed text, make sure the window is shown. 0N/A This is necessary to get a valid graphics object. See 6181385. 0N/A // Resize the composition area to just fit the text. 0N/A // If it's a passive client, set the width always to PASSIVE_WIDTH (480px) 0N/A // show the composed text 0N/A * Sets the caret to be displayed in this composition area. 0N/A * The text is not changed. 0N/A * Positions the composition window near (usually below) the 0N/A * insertion point in the client component if the client 0N/A * component is an active client (below-the-spot input). 0N/A // not an active client 0N/A // support for InputMethodRequests methods 0N/A // Disables or enables decorations of the composition window