| パッケージ | 説明 |
|---|---|
| java.awt |
ユーザー・インタフェースの作成およびグラフィックスとイメージのペイント用のすべてのクラスを含みます。
|
| java.awt.font |
フォント関連のクラスおよびインタフェースを提供します。
|
| 修飾子と型 | メソッド | 説明 |
|---|---|---|
abstract FontRenderContext |
Graphics2D.getFontRenderContext()
この
Graphics2Dコンテキスト内のFontのレンダリング・コンテキストを取得します。 |
|
FontRenderContext |
FontMetrics.getFontRenderContext()
テキストを測定するためにこの
FontMetricsオブジェクトによって使用されるFontRenderContextを取得します。 |
| 修飾子と型 | メソッド | 説明 |
|---|---|---|
GlyphVector |
Font.createGlyphVector(FontRenderContext frc, char[] chars)
この
Font内のUnicode cmapに基づいて文字からグリフに1対1にマッピングすることによって、GlyphVectorを作成します。 |
|
GlyphVector |
Font.createGlyphVector(FontRenderContext frc, CharacterIterator ci)
この
Font内のUnicode cmapに基づいて指定された文字からグリフに1対1にマッピングすることによって、GlyphVectorを作成します。 |
|
GlyphVector |
Font.createGlyphVector(FontRenderContext frc, int[] glyphCodes)
この
Font内のUnicode cmapに基づいて文字からグリフに1対1にマッピングすることによって、GlyphVectorを作成します。 |
|
GlyphVector |
Font.createGlyphVector(FontRenderContext frc, String str)
この
Font内のUnicode cmapに基づいて文字からグリフに1対1にマッピングすることによって、GlyphVectorを作成します。 |
|
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)
指定された
StringとFontRenderContextで作成されたLineMetricsオブジェクトを返します。 |
|
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)
指定された
FontRenderContext内の指定されたCharacterIteratorでインデックスが付けられた文字の論理境界を返します。 |
|
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オブジェクトを返します。 |
| 修飾子と型 | メソッド | 説明 |
|---|---|---|
abstract FontRenderContext |
GlyphVector.getFontRenderContext()
この
GlyphVectorに関連付けられたFontRenderContextを返します。 |
| 修飾子と型 | メソッド | 説明 |
|---|---|---|
boolean |
FontRenderContext.equals(FontRenderContext rhs)
rhsの変換、アンチエイリアス、および部分メトリックスの値がこれと等しい場合はtrueを返します。
|
|
Rectangle |
GlyphVector.getGlyphPixelBounds(int index, FontRenderContext renderFRC, float x, float y)
指定された位置で指定された
FontRenderContextを使ってGraphics内にこのGlyphVectorがレンダリングされるときのインデックスの位置にあるグリフのピクセル境界を返します。 |
|
Rectangle |
TextLayout.getPixelBounds(FontRenderContext frc, float x, float y)
指定された位置にある指定された
FontRenderContextを使用してグラフィックス内にレンダリングされるときの、このTextLayoutのピクセル境界を返します。 |
|
Rectangle |
GlyphVector.getPixelBounds(FontRenderContext renderFRC, float x, float y)
指定された位置にある指定された
FontRenderContextを使用してグラフィックス内にレンダリングされるときの、このGlyphVectorのピクセル境界を返します。 |
| コンストラクタ | 説明 |
|---|---|
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)
StringおよびFontからTextLayoutを構築します。 |
|
TextLayout(String string, Map<? extends AttributedCharacterIterator.Attribute,?> attributes, FontRenderContext frc)
Stringおよび属性セットからTextLayoutを構築します。 |
|
TextMeasurer(AttributedCharacterIterator text, FontRenderContext frc)
ソース・テキストから
TextMeasurerを構築します。 |
バグまたは機能を送信
詳細なAPIリファレンスおよび開発者ドキュメントについては、Java SEのドキュメントを参照してください。 そのドキュメントには、概念的な概要、用語の定義、回避方法、有効なコード例などの、開発者を対象にしたより詳細な説明が含まれています。
Copyright © 1993, 2025, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Documentation Redistribution Policyも参照してください。