软件包 | 描述 |
---|---|
java.awt |
包含创建用户界面和绘制图形和图像的所有类。
|
java.awt.font |
提供有关字体的类和接口。
|
java.awt.im |
提供输入法框架的类和接口。
|
java.text |
提供用于处理独立于自然语言的方式处理文本、日期、数字和消息的类和接口。
|
Modifier and Type | Method and Description |
---|---|
AttributedCharacterIterator.Attribute[] |
Font.getAvailableAttributes()
返回所有属性支持的
Font 钥匙。
|
Modifier and Type | Method and Description |
---|---|
Font |
Font.deriveFont(Map<? extends AttributedCharacterIterator.Attribute,?> attributes)
通过复制当前
Font 对象和应用一套新的字体属性,它创建了一个新的
Font 对象。
|
static Font |
Font.getFont(Map<? extends AttributedCharacterIterator.Attribute,?> attributes)
返回一个
Font 适当的属性。
|
Constructor and Description |
---|
Font(Map<? extends AttributedCharacterIterator.Attribute,?> attributes)
创建具有指定属性的新
Font 。
|
Modifier and Type | Class and Description |
---|---|
class |
TextAttribute
的
TextAttribute 类定义了属性键和用于文本渲染属性值。
|
Constructor and Description |
---|
TextLayout(String string, Map<? extends AttributedCharacterIterator.Attribute,?> attributes, FontRenderContext frc)
构建了从
String 和一个属性
TextLayout 集。
|
Modifier and Type | Method and Description |
---|---|
AttributedCharacterIterator |
InputMethodRequests.cancelLatestCommittedText(AttributedCharacterIterator.Attribute[] attributes)
从文本编辑组件中获取最新提交的文本,并将其从组件的文本体中删除。
|
AttributedCharacterIterator |
InputMethodRequests.getCommittedText(int beginIndex, int endIndex, AttributedCharacterIterator.Attribute[] attributes)
获取一个迭代器提供访问整个文本和属性中包含的文本编辑组件除了自由文本。
|
AttributedCharacterIterator |
InputMethodRequests.getSelectedText(AttributedCharacterIterator.Attribute[] attributes)
从文本编辑组件中获取当前选定的文本。
|
Modifier and Type | Class and Description |
---|---|
static class |
DateFormat.Field
定义常数,作为在
AttributedCharacterIterator 属性的钥匙从
DateFormat.formatToCharacterIterator 作为
FieldPosition 字段标识符返回。
|
static class |
Format.Field
定义常数,作为在
AttributedCharacterIterator 属性的钥匙从
Format.formatToCharacterIterator 作为
FieldPosition 字段标识符返回。
|
static class |
MessageFormat.Field
定义常数,作为在
AttributedCharacterIterator 属性键返回
MessageFormat.formatToCharacterIterator 。
|
static class |
NumberFormat.Field
定义常数,作为在
AttributedCharacterIterator 属性的钥匙从
NumberFormat.formatToCharacterIterator 作为
FieldPosition 字段标识符返回。
|
Modifier and Type | Field and Description |
---|---|
static AttributedCharacterIterator.Attribute |
AttributedCharacterIterator.Attribute.INPUT_METHOD_SEGMENT
输入方法段的属性键。
|
static AttributedCharacterIterator.Attribute |
AttributedCharacterIterator.Attribute.LANGUAGE
一些文本语言的属性键。
|
static AttributedCharacterIterator.Attribute |
AttributedCharacterIterator.Attribute.READING
用于读取一些文本的属性键。
|
Modifier and Type | Method and Description |
---|---|
Set<AttributedCharacterIterator.Attribute> |
AttributedCharacterIterator.getAllAttributeKeys()
返回在迭代器的文本范围中定义的所有属性的键。
|
Map<AttributedCharacterIterator.Attribute,Object> |
AttributedCharacterIterator.getAttributes()
返回当前字符上定义的属性的Map。
|
Modifier and Type | Method and Description |
---|---|
void |
AttributedString.addAttribute(AttributedCharacterIterator.Attribute attribute, Object value)
向整个字符串添加一个属性。
|
void |
AttributedString.addAttribute(AttributedCharacterIterator.Attribute attribute, Object value, int beginIndex, int endIndex)
将属性添加到的子字符串。
|
Object |
AttributedCharacterIterator.getAttribute(AttributedCharacterIterator.Attribute attribute)
返回指定的字符
attribute 电流值。
|
AttributedCharacterIterator |
AttributedString.getIterator(AttributedCharacterIterator.Attribute[] attributes)
创建一个attributedcharacteriterator实例提供了访问该字符串所选择的内容。
|
AttributedCharacterIterator |
AttributedString.getIterator(AttributedCharacterIterator.Attribute[] attributes, int beginIndex, int endIndex)
创建一个attributedcharacteriterator实例提供了访问该字符串所选择的内容。
|
int |
AttributedCharacterIterator.getRunLimit(AttributedCharacterIterator.Attribute attribute)
返回第一个字符的索引以下给定
attribute 包含当前字符的运行。
|
int |
AttributedCharacterIterator.getRunStart(AttributedCharacterIterator.Attribute attribute)
返回与给定
attribute 包含当前字符运行的第一个字符的索引。
|
Modifier and Type | Method and Description |
---|---|
void |
AttributedString.addAttributes(Map<? extends AttributedCharacterIterator.Attribute,?> attributes, int beginIndex, int endIndex)
将一组属性的一部分的字符串。
|
int |
AttributedCharacterIterator.getRunLimit(Set<? extends AttributedCharacterIterator.Attribute> attributes)
返回第一个字符的索引以下给定
attributes 包含当前字符的运行。
|
int |
AttributedCharacterIterator.getRunStart(Set<? extends AttributedCharacterIterator.Attribute> attributes)
返回与给定
attributes 包含当前字符运行的第一个字符的索引。
|
Constructor and Description |
---|
AttributedString(AttributedCharacterIterator text, int beginIndex, int endIndex, AttributedCharacterIterator.Attribute[] attributes)
构建了一个attributedstring实例与给定的属性的文本表示的attributedcharacteriterator终端。
|
Constructor and Description |
---|
AttributedString(String text, Map<? extends AttributedCharacterIterator.Attribute,?> attributes)
构建了一个attributedstring实例与给定的文本和属性。
|
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.