| 软件包 | 描述 |
|---|---|
| java.awt.event |
用于处理不同类型的事件由AWT组件提供的接口和类发射。
|
| java.awt.font |
提供有关字体的类和接口。
|
| java.awt.im |
提供输入法框架的类和接口。
|
| java.awt.im.spi |
提供的接口,使输入方法,可用于任何java运行时环境的发展。
|
| Modifier and Type | Method and Description |
|---|---|
TextHitInfo |
InputMethodEvent.getCaret()
获取插入符号。
|
TextHitInfo |
InputMethodEvent.getVisiblePosition()
获取最重要的是可见的位置。
|
| Constructor and Description |
|---|
InputMethodEvent(Component source, int id, AttributedCharacterIterator text, int committedCharacterCount, TextHitInfo caret, TextHitInfo visiblePosition)
构建具有指定源组件,一个
InputMethodEvent型,文字,符号,和visibleposition。
|
InputMethodEvent(Component source, int id, long when, AttributedCharacterIterator text, int committedCharacterCount, TextHitInfo caret, TextHitInfo visiblePosition)
构建具有指定源组件,一个
InputMethodEvent类型,时间,文字,符号,和visibleposition。
|
InputMethodEvent(Component source, int id, TextHitInfo caret, TextHitInfo visiblePosition)
构建具有指定源组件,一个
InputMethodEvent型,符号,和visibleposition。
|
| Modifier and Type | Method and Description |
|---|---|
static TextHitInfo |
TextHitInfo.afterOffset(int offset)
创建指定的偏移量处
TextHitInfo,后偏移的性质有关。
|
static TextHitInfo |
TextHitInfo.beforeOffset(int offset)
创建一个
TextHitInfo按指定的偏移量,与之前的字符偏移量有关。
|
TextHitInfo |
TextLayout.getNextLeftHit(int offset)
返回到左下插入命中(上);如果没有这样的打击,返回
null。
|
TextHitInfo |
TextLayout.getNextLeftHit(int offset, TextLayout.CaretPolicy policy)
返回到左下插入命中(上);如果没有这样的打击,返回
null。
|
TextHitInfo |
TextLayout.getNextLeftHit(TextHitInfo hit)
返回到左下插入命中(上);如果没有这样的打击,返回
null。
|
TextHitInfo |
TextLayout.getNextRightHit(int offset)
返回到正确的下一个符号的命中(底部);如果没有这样的打击,返回
null。
|
TextHitInfo |
TextLayout.getNextRightHit(int offset, TextLayout.CaretPolicy policy)
返回到正确的下一个符号的命中(底部);如果没有这样的打击,返回
null。
|
TextHitInfo |
TextLayout.getNextRightHit(TextHitInfo hit)
返回到正确的下一个符号的命中(底部);如果没有这样的打击,返回
null。
|
TextHitInfo |
TextHitInfo.getOffsetHit(int delta)
创建一个
TextHitInfo其特征指标是由这
TextHitInfo的
charIndex
delta偏移。
|
TextHitInfo |
TextHitInfo.getOtherHit()
可以在插入点的另一侧
TextHitInfo。
|
TextHitInfo |
TextLayout.CaretPolicy.getStrongCaret(TextHitInfo hit1, TextHitInfo hit2, TextLayout layout)
选择一个指定的
TextHitInfo实例作为指定的
TextLayout强大的符号。
|
TextHitInfo |
TextLayout.getVisualOtherHit(TextHitInfo hit)
返回在指定的符号打对方打。
|
TextHitInfo |
TextLayout.hitTestChar(float x, float y)
返回对应于指定点
TextHitInfo。
|
TextHitInfo |
TextLayout.hitTestChar(float x, float y, Rectangle2D bounds)
返回对应于指定点
TextHitInfo。
|
static TextHitInfo |
TextHitInfo.leading(int charIndex)
创建基于字符的领先优势,在指定的
charIndex一
TextHitInfo。
|
static TextHitInfo |
TextHitInfo.trailing(int charIndex)
创建基于字符的后缘在指定的
charIndex击中。
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
TextHitInfo.equals(TextHitInfo hitInfo)
返回
true如果指定
TextHitInfo具有相同的
charIndex和
isLeadingEdge这
TextHitInfo。
|
float[] |
TextLayout.getCaretInfo(TextHitInfo hit)
返回对应于
hit插入符号信息。
|
float[] |
TextLayout.getCaretInfo(TextHitInfo hit, Rectangle2D bounds)
返回对应于
hit插入符号信息。
|
Shape |
TextLayout.getCaretShape(TextHitInfo hit)
返回一个
Shape代表在指定的打在这
TextLayout自然界的符号。
|
Shape |
TextLayout.getCaretShape(TextHitInfo hit, Rectangle2D bounds)
返回一个
Shape代表在指定的打在指定边界的符号。
|
int[] |
TextLayout.getLogicalRangesForVisualSelection(TextHitInfo firstEndpoint, TextHitInfo secondEndpoint)
返回对应于一个视觉选择的文本的逻辑范围。
|
TextHitInfo |
TextLayout.getNextLeftHit(TextHitInfo hit)
返回到左下插入命中(上);如果没有这样的打击,返回
null。
|
TextHitInfo |
TextLayout.getNextRightHit(TextHitInfo hit)
返回到正确的下一个符号的命中(底部);如果没有这样的打击,返回
null。
|
TextHitInfo |
TextLayout.CaretPolicy.getStrongCaret(TextHitInfo hit1, TextHitInfo hit2, TextLayout layout)
选择一个指定的
TextHitInfo实例作为指定的
TextLayout强大的符号。
|
Shape |
TextLayout.getVisualHighlightShape(TextHitInfo firstEndpoint, TextHitInfo secondEndpoint)
返回一个
Shape内附视觉选择在指定的范围,扩展到边界。
|
Shape |
TextLayout.getVisualHighlightShape(TextHitInfo firstEndpoint, TextHitInfo secondEndpoint, Rectangle2D bounds)
返回一个路径包围的视觉选择指定的范围,扩展到
bounds。
|
TextHitInfo |
TextLayout.getVisualOtherHit(TextHitInfo hit)
返回在指定的符号打对方打。
|
void |
TextLayout.hitToPoint(TextHitInfo hit, Point2D point)
在标准坐标中转换一个命中到一个点。
|
| Modifier and Type | Method and Description |
|---|---|
TextHitInfo |
InputMethodRequests.getLocationOffset(int x, int y)
获取在屏幕上指定的绝对X和Y坐标的组合文本中的偏移量。
|
| Modifier and Type | Method and Description |
|---|---|
Rectangle |
InputMethodRequests.getTextLocation(TextHitInfo offset)
获取当前组合文本中指定偏移量的位置,或提交的文本中的选择位置。
|
| Modifier and Type | Method and Description |
|---|---|
void |
InputMethodContext.dispatchInputMethodEvent(int id, AttributedCharacterIterator text, int committedCharacterCount, TextHitInfo caret, TextHitInfo visiblePosition)
创建从给定的参数输入法事件分派到客户端组件。
|
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.