| Modifier and Type | Class and Description |
|---|---|
| pack-priv class |
| Modifier and Type | Field and Description |
|---|---|
| private TextHitInfo | |
| private TextLayout | |
| private JFrame | |
| private CompositionAreaHandler | |
| private static final int | |
| private static final int | |
| private static final long | serialVersionUID
Use serialVersionUID from JDK 1.7 for interoperability.
|
| private static final int | |
| private static final int | |
| private static final int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | caretPositionChanged(InputMethodEvent event)
Implements java. Invoked when the caret within composed text has changed. |
| private Rectangle | |
| public InputMethodRequests | getInputMethodRequests()
Overrides java. Gets the input method request handler which supports requests from input methods for this component. |
| pack-priv TextHitInfo | |
| pack-priv Rectangle | |
| public void | inputMethodTextChanged(InputMethodEvent event)
Implements java. Invoked when the text entered through an input method has changed. |
| pack-priv boolean | |
| public void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv synchronized void | setHandlerInfo(CompositionAreaHandler handler, InputContext inputContext)
Sets the composition area handler that currently owns this composition area, and its input context. |
| pack-priv void | setText(AttributedCharacterIterator composedText, TextHitInfo caret)
Sets the text and caret to be displayed in this composition area. |
| pack-priv void | updateWindowLocation()
Positions the composition window near (usually below) the insertion point in the client component if the client component is an active client (below-the-spot input). |
| caret | back to summary |
|---|---|
private TextHitInfo caret
| |
| composedTextLayout | back to summary |
|---|---|
private TextLayout composedTextLayout
| |
| compositionWindow | back to summary |
|---|---|
| private JFrame compositionWindow | |
| handler | back to summary |
|---|---|
private CompositionAreaHandler handler
| |
| HEIGHT_MARGIN | back to summary |
|---|---|
| private static final int HEIGHT_MARGIN | |
| PASSIVE_WIDTH | back to summary |
|---|---|
| private static final int PASSIVE_WIDTH | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides java. Use serialVersionUID from JDK 1.7 for interoperability. | |
| TEXT_ORIGIN_X | back to summary |
|---|---|
| private static final int TEXT_ORIGIN_X | |
| TEXT_ORIGIN_Y | back to summary |
|---|---|
| private static final int TEXT_ORIGIN_Y | |
| WIDTH_MARGIN | back to summary |
|---|---|
| private static final int WIDTH_MARGIN | |
| CompositionArea | back to summary |
|---|---|
| pack-priv CompositionArea() | |
| caretPositionChanged | back to summary |
|---|---|
| public void caretPositionChanged(InputMethodEvent event) Implements java. Doc from java. Invoked when the caret within composed text has changed. | |
| getCaretRectangle | back to summary |
|---|---|
| private Rectangle getCaretRectangle(TextHitInfo caret) | |
| getInputMethodRequests | back to summary |
|---|---|
| public InputMethodRequests getInputMethodRequests() Overrides java. Doc from java. Gets the input method request handler which supports
requests from input methods for this component. A component
that supports on-the-spot text input must override this
method to return an | |
| getLocationOffset | back to summary |
|---|---|
| pack-priv TextHitInfo getLocationOffset(int x, int y) | |
| getTextLocation | back to summary |
|---|---|
| pack-priv Rectangle getTextLocation(TextHitInfo offset) | |
| inputMethodTextChanged | back to summary |
|---|---|
| public void inputMethodTextChanged(InputMethodEvent event) Implements java. Doc from java. Invoked when the text entered through an input method has changed. | |
| isCompositionAreaVisible | back to summary |
|---|---|
| pack-priv boolean isCompositionAreaVisible() | |
| paint | back to summary |
|---|---|
| public void paint(Graphics g) Overrides javax. Doc from javax. Invoked by Swing to draw components.
Applications should not invoke
This method actually delegates the work of painting to three
protected methods: | |
| setCaret | back to summary |
|---|---|
| pack-priv void setCaret(TextHitInfo caret) Sets the caret to be displayed in this composition area. The text is not changed. | |
| setCompositionAreaUndecorated | back to summary |
|---|---|
| pack-priv void setCompositionAreaUndecorated(boolean setUndecorated) | |
| setCompositionAreaVisible | back to summary |
|---|---|
| pack-priv void setCompositionAreaVisible(boolean visible) | |
| setHandlerInfo | back to summary |
|---|---|
| pack-priv synchronized void setHandlerInfo(CompositionAreaHandler handler, InputContext inputContext) Sets the composition area handler that currently owns this composition area, and its input context. | |
| setText | back to summary |
|---|---|
| pack-priv void setText(AttributedCharacterIterator composedText, TextHitInfo caret) Sets the text and caret to be displayed in this composition area. Shows the window if it contains text, hides it if not. | |
| updateWindowLocation | back to summary |
|---|---|
| pack-priv void updateWindowLocation() Positions the composition window near (usually below) the insertion point in the client component if the client component is an active client (below-the-spot input). | |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | windowActivated(WindowEvent e)
Overrides java. Implements java. Invoked when a window is activated. |
| FrameWindowAdapter | back to summary |
|---|---|
| pack-priv FrameWindowAdapter() | |
| windowActivated | back to summary |
|---|---|
| public void windowActivated(WindowEvent e) Overrides java. Implements java. Doc from java. Invoked when a window is activated. | |