软件包 | 描述 |
---|---|
java.awt |
包含创建用户界面和绘制图形和图像的所有类。
|
java.text |
提供用于处理独立于自然语言的方式处理文本、日期、数字和消息的类和接口。
|
javax.swing.text |
提供类和接口处理编辑和不可编辑的文本组件。
|
Modifier and Type | Method and Description |
---|---|
int |
Font.canDisplayUpTo(CharacterIterator iter, int start, int limit)
指示是否这个
Font 可以显示由
iter 开始和结束在
start
limit 指定的文本。
|
GlyphVector |
Font.createGlyphVector(FontRenderContext frc, CharacterIterator ci)
用指定的字符映射到符号一一基于这
Font Unicode CMAP创建一个
GlyphVector 。
|
LineMetrics |
Font.getLineMetrics(CharacterIterator ci, int beginIndex, int limit, FontRenderContext frc)
返回与指定的参数创建对象
LineMetrics 。
|
LineMetrics |
FontMetrics.getLineMetrics(CharacterIterator ci, int beginIndex, int limit, Graphics context)
|
Rectangle2D |
Font.getStringBounds(CharacterIterator ci, int beginIndex, int limit, FontRenderContext frc)
返回逻辑边界的字符索引指定的
CharacterIterator 在指定的
FontRenderContext 。
|
Rectangle2D |
FontMetrics.getStringBounds(CharacterIterator ci, int beginIndex, int limit, Graphics context)
返回的边界的字符索引指定的
CharacterIterator 在指定的
Graphics 语境。
|
Modifier and Type | Interface and Description |
---|---|
interface |
AttributedCharacterIterator
一个
AttributedCharacterIterator 允许通过文字和相关的属性信息迭代。
|
Modifier and Type | Class and Description |
---|---|
class |
StringCharacterIterator
StringCharacterIterator 实现一个
String 的
CharacterIterator 协议。
|
Modifier and Type | Method and Description |
---|---|
abstract CharacterIterator |
BreakIterator.getText()
获取正在被扫描的文本
|
Modifier and Type | Method and Description |
---|---|
CollationElementIterator |
RuleBasedCollator.getCollationElementIterator(CharacterIterator source)
返回一个给定的characteriterator CollationElementIterator。
|
void |
CollationElementIterator.setText(CharacterIterator source)
设置一个新的字符串来进行迭代。
|
abstract void |
BreakIterator.setText(CharacterIterator newText)
为扫描设置一个新的文本。
|
Modifier and Type | Class and Description |
---|---|
class |
Segment
表示文本片段的字符数组的一个片段。
|
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.