クラス
java.awt.font.FontRenderContextの使用
FontRenderContextを使用するパッケージ
パッケージ
説明
ユーザー・インタフェースの作成およびグラフィックスとイメージのペイント用のすべてのクラスを含みます。
フォント関連のクラスおよびインタフェースを提供します。
-
java.awtでのFontRenderContextの使用
FontRenderContextを返すjava.awtのメソッド修飾子と型メソッド説明FontMetrics.getFontRenderContext()テキストを測定するためにこのFontMetricsオブジェクトによって使用されるFontRenderContextを取得します。abstract FontRenderContextGraphics2D.getFontRenderContext()このGraphics2Dコンテキスト内のFontのレンダリング・コンテキストを取得します。型FontRenderContextのパラメータを持つjava.awtのメソッド修飾子と型メソッド説明Font.createGlyphVector(FontRenderContext frc, char[] chars) このFont内のUnicode cmapに基づいて文字からグリフに1対1にマッピングすることによって、GlyphVectorを作成します。Font.createGlyphVector(FontRenderContext frc, int[] glyphCodes) このFont内のUnicode cmapに基づいて文字からグリフに1対1にマッピングすることによって、GlyphVectorを作成します。Font.createGlyphVector(FontRenderContext frc, String str) このFont内のUnicode cmapに基づいて文字からグリフに1対1にマッピングすることによって、GlyphVectorを作成します。Font.createGlyphVector(FontRenderContext frc, CharacterIterator ci) このFont内のUnicode cmapに基づいて指定された文字からグリフに1対1にマッピングすることによって、GlyphVectorを作成します。Font.getLineMetrics(char[] chars, int beginIndex, int limit, FontRenderContext frc) 指定された引数で作成されたLineMetricsオブジェクトを返します。Font.getLineMetrics(String str, int beginIndex, int limit, FontRenderContext frc) 指定された引数で作成されたLineMetricsオブジェクトを返します。Font.getLineMetrics(String str, FontRenderContext frc) 指定されたStringとFontRenderContextで作成されたLineMetricsオブジェクトを返します。Font.getLineMetrics(CharacterIterator ci, int beginIndex, int limit, FontRenderContext frc) 指定された引数で作成されたLineMetricsオブジェクトを返します。Font.getMaxCharBounds(FontRenderContext frc) 指定されたFontRenderContextで定義された、最大の境界を持つ文字の境界を返します。Font.getStringBounds(char[] chars, int beginIndex, int limit, FontRenderContext frc) 指定されたFontRenderContext内の指定された文字の配列の論理境界を返します。Font.getStringBounds(String str, int beginIndex, int limit, FontRenderContext frc) 指定されたFontRenderContext内の指定されたStringの論理境界を返します。Font.getStringBounds(String str, FontRenderContext frc) 指定されたFontRenderContext内の指定されたStringの論理境界を返します。Font.getStringBounds(CharacterIterator ci, int beginIndex, int limit, FontRenderContext frc) 指定されたFontRenderContext内の指定されたCharacterIteratorでインデックスが付けられた文字の論理境界を返します。Font.layoutGlyphVector(FontRenderContext frc, char[] text, int start, int limit, int flags) 可能であればテキストの完全なレイアウトを実行して、新しいGlyphVectorオブジェクトを返します。 -
java.awt.fontでのFontRenderContextの使用
FontRenderContextを返すjava.awt.fontのメソッド修飾子と型メソッド説明abstract FontRenderContextGlyphVector.getFontRenderContext()このGlyphVectorに関連付けられたFontRenderContextを返します。型FontRenderContextのパラメータを持つjava.awt.fontのメソッド修飾子と型メソッド説明booleanFontRenderContext.equals(FontRenderContext rhs) rhsの変換、アンチエイリアス、および部分メトリックスの値がこれと等しい場合はtrueを返します。GlyphVector.getGlyphPixelBounds(int index, FontRenderContext renderFRC, float x, float y) 指定された位置で指定されたFontRenderContextを使ってGraphics内にこのGlyphVectorがレンダリングされるときのインデックスの位置にあるグリフのピクセル境界を返します。GlyphVector.getPixelBounds(FontRenderContext renderFRC, float x, float y) 指定された位置にある指定されたFontRenderContextを使用してグラフィックス内にレンダリングされるときの、このGlyphVectorのピクセル境界を返します。TextLayout.getPixelBounds(FontRenderContext frc, float x, float y) 指定された位置にある指定されたFontRenderContextを使用してグラフィックス内にレンダリングされるときの、このTextLayoutのピクセル境界を返します。型FontRenderContextのパラメータを持つjava.awt.fontのコンストラクタ修飾子コンストラクタ説明指定されたテキストに対するLineBreakMeasurerを構築します。LineBreakMeasurer(AttributedCharacterIterator text, BreakIterator breakIter, FontRenderContext frc) 指定されたテキストに対するLineBreakMeasurerを構築します。TextLayout(String string, Font font, FontRenderContext frc) StringおよびFontからTextLayoutを構築します。TextLayout(String string, Map<? extends AttributedCharacterIterator.Attribute, ?> attributes, FontRenderContext frc) Stringおよび属性セットからTextLayoutを構築します。書式付きテキストのイテレータからTextLayoutを構築します。ソース・テキストからTextMeasurerを構築します。