软件包 | 描述 |
---|---|
java.awt |
包含创建用户界面和绘制图形和图像的所有类。
|
java.awt.font |
提供有关字体的类和接口。
|
java.awt.im |
提供输入法框架的类和接口。
|
Modifier and Type | Method and Description |
---|---|
Map<TextAttribute,?> |
Font.getAttributes()
返回Map字体属性可在这
Font 。
|
abstract Map<TextAttribute,?> |
Toolkit.mapInputMethodHighlight(InputMethodHighlight highlight)
返回给定输入方法的抽象层次描述的可视化属性的映射,如果没有找到映射。
|
Modifier and Type | Field and Description |
---|---|
static TextAttribute |
TextAttribute.BACKGROUND
用于渲染文本背景的油漆的属性键。
|
static TextAttribute |
TextAttribute.BIDI_EMBEDDING
文本嵌入级别的属性键。
|
static TextAttribute |
TextAttribute.CHAR_REPLACEMENT
为用户定义的一个用户定义的字形的属性键来显示一个字符的标准字形。
|
static TextAttribute |
TextAttribute.FAMILY
字体名称的属性键。
|
static TextAttribute |
TextAttribute.FONT
属性键用于提供用于渲染文本的字体。
|
static TextAttribute |
TextAttribute.FOREGROUND
用于渲染文本的油漆的属性键。
|
static TextAttribute |
TextAttribute.INPUT_METHOD_HIGHLIGHT
用于输入方法突出样式的属性键。
|
static TextAttribute |
TextAttribute.INPUT_METHOD_UNDERLINE
输入方法的属性键下划线。
|
static TextAttribute |
TextAttribute.JUSTIFICATION
为段落的理由的属性键。
|
static TextAttribute |
TextAttribute.KERNING
属性的关键要求字距。
|
static TextAttribute |
TextAttribute.LIGATURES
属性的关键使可选连字。
|
static TextAttribute |
TextAttribute.NUMERIC_SHAPING
属性转换为ASCII十进制数字键其他小数范围。
|
static TextAttribute |
TextAttribute.POSTURE
字体的姿势的属性键。
|
static TextAttribute |
TextAttribute.RUN_DIRECTION
行的运行方向的属性键。
|
static TextAttribute |
TextAttribute.SIZE
字体大小的属性键。
|
static TextAttribute |
TextAttribute.STRIKETHROUGH
属性键删除线。
|
static TextAttribute |
TextAttribute.SUPERSCRIPT
属性键superscripting和下标。
|
static TextAttribute |
TextAttribute.SWAP_COLORS
属性键交换前景色和背景
Paints 。
|
static TextAttribute |
TextAttribute.TRACKING
控制跟踪的属性键。
|
static TextAttribute |
TextAttribute.TRANSFORM
用于变换字体的属性键。
|
static TextAttribute |
TextAttribute.UNDERLINE
下划线的属性键。
|
static TextAttribute |
TextAttribute.WEIGHT
字体重量的属性键。
|
static TextAttribute |
TextAttribute.WIDTH
字体宽度的属性键。
|
Modifier and Type | Method and Description |
---|---|
Map<TextAttribute,?> |
InputMethodHighlight.getStyle()
返回文本范围的渲染样式属性,或为。
|
Constructor and Description |
---|
InputMethodHighlight(boolean selected, int state, int variation, Map<TextAttribute,?> style)
构造一个输入法突出记录。
|
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.