软件包 | 描述 |
---|---|
java.awt |
包含创建用户界面和绘制图形和图像的所有类。
|
java.awt.font |
提供有关字体的类和接口。
|
Modifier and Type | Method and Description |
---|---|
abstract FontRenderContext |
Graphics2D.getFontRenderContext()
在这
Graphics2D 上下文得到的
Font 渲染上下文。
|
FontRenderContext |
FontMetrics.getFontRenderContext()
通过这
FontMetrics 对象用来衡量文本的
FontRenderContext 。
|
Modifier and Type | Method and Description |
---|---|
GlyphVector |
Font.createGlyphVector(FontRenderContext frc, char[] chars)
创建一个
GlyphVector 映射字符符号一一基于这
Font Unicode CMAP。
|
GlyphVector |
Font.createGlyphVector(FontRenderContext frc, CharacterIterator ci)
用指定的字符映射到符号一一基于这
Font Unicode CMAP创建一个
GlyphVector 。
|
GlyphVector |
Font.createGlyphVector(FontRenderContext frc, int[] glyphCodes)
创建一个
GlyphVector 映射字符符号一一基于这
Font Unicode CMAP。
|
GlyphVector |
Font.createGlyphVector(FontRenderContext frc, String str)
创建一个
GlyphVector 映射字符符号一一基于这
Font Unicode CMAP。
|
LineMetrics |
Font.getLineMetrics(char[] chars, int beginIndex, int limit, FontRenderContext frc)
返回与指定的参数创建对象
LineMetrics 。
|
LineMetrics |
Font.getLineMetrics(CharacterIterator ci, int beginIndex, int limit, FontRenderContext frc)
返回与指定的参数创建
LineMetrics 对象。
|
LineMetrics |
Font.getLineMetrics(String str, FontRenderContext frc)
|
LineMetrics |
Font.getLineMetrics(String str, int beginIndex, int limit, FontRenderContext frc)
返回与指定的参数创建对象
LineMetrics 。
|
Rectangle2D |
Font.getMaxCharBounds(FontRenderContext frc)
返回的最大范围为指定的
FontRenderContext 定义的字符范围。
|
Rectangle2D |
Font.getStringBounds(char[] chars, int beginIndex, int limit, FontRenderContext frc)
返回指定字符数组中指定的
FontRenderContext 逻辑界限。
|
Rectangle2D |
Font.getStringBounds(CharacterIterator ci, int beginIndex, int limit, FontRenderContext frc)
返回逻辑边界的字符索引指定的
CharacterIterator 在指定的
FontRenderContext 。
|
Rectangle2D |
Font.getStringBounds(String str, FontRenderContext frc)
返回在指定的
FontRenderContext 指定的
String 逻辑界限。
|
Rectangle2D |
Font.getStringBounds(String str, int beginIndex, int limit, FontRenderContext frc)
返回在指定的
FontRenderContext 指定的
String 逻辑界限。
|
GlyphVector |
Font.layoutGlyphVector(FontRenderContext frc, char[] text, int start, int limit, int flags)
返回一个新的
GlyphVector 对象,如果可能的话,对文本进行充分的布局。
|
Modifier and Type | Method and Description |
---|---|
abstract FontRenderContext |
GlyphVector.getFontRenderContext()
返回与此相关的
FontRenderContext
GlyphVector 。
|
Modifier and Type | Method and Description |
---|---|
boolean |
FontRenderContext.equals(FontRenderContext rhs)
如果右边有相同的变换,反走样返回true,和分数度量值作为该。
|
Rectangle |
GlyphVector.getGlyphPixelBounds(int index, FontRenderContext renderFRC, float x, float y)
返回的字形索引像素边界时
GlyphVector 是一个给定
FontRenderContext 在给定位置
Graphics 渲染。
|
Rectangle |
GlyphVector.getPixelBounds(FontRenderContext renderFRC, float x, float y)
返回该
GlyphVector 像素边界时,呈现在一个给定
FontRenderContext 在给定位置的图形。
|
Rectangle |
TextLayout.getPixelBounds(FontRenderContext frc, float x, float y)
返回该
TextLayout 像素边界时,呈现在一个给定
FontRenderContext 在给定位置的图形。
|
Constructor and Description |
---|
LineBreakMeasurer(AttributedCharacterIterator text, BreakIterator breakIter, FontRenderContext frc)
构建了一个指定的文本
LineBreakMeasurer 。
|
LineBreakMeasurer(AttributedCharacterIterator text, FontRenderContext frc)
构建了一个指定的文本
LineBreakMeasurer 。
|
TextLayout(AttributedCharacterIterator text, FontRenderContext frc)
构建从样式文本迭代器的一个
TextLayout 。
|
TextLayout(String string, Font font, FontRenderContext frc)
|
TextLayout(String string, Map<? extends AttributedCharacterIterator.Attribute,?> attributes, FontRenderContext frc)
构建了从
String 和一个属性
TextLayout 集。
|
TextMeasurer(AttributedCharacterIterator text, FontRenderContext frc)
构建了从源文本的
TextMeasurer 。
|
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.