クラス
java.awt.font.FontRenderContextの使用
-
FontRenderContextを使用しているパッケージ パッケージ 説明 java.awt ユーザー・インタフェースの作成およびグラフィックスとイメージのペイント用のすべてのクラスを含みます。java.awt.font フォント関連のクラスおよびインタフェースを提供します。 -
-
java.awtでのFontRenderContextの使用
FontRenderContextを返すjava.awtのメソッド 修飾子と型 メソッド 説明 FontRenderContextFontMetrics. getFontRenderContext()テキストを測定するためにこのFontMetricsオブジェクトによって使用されるFontRenderContextを取得します。abstract FontRenderContextGraphics2D. getFontRenderContext()このGraphics2Dコンテキスト内のFontのレンダリング・コンテキストを取得します。FontRenderContext型のパラメータを持つjava.awtのメソッド 修飾子と型 メソッド 説明 GlyphVectorFont. createGlyphVector(FontRenderContext frc, char[] chars)このFont内のUnicode cmapに基づいて文字からグリフに1対1にマッピングすることによって、GlyphVectorを作成します。GlyphVectorFont. createGlyphVector(FontRenderContext frc, int[] glyphCodes)このFont内のUnicode cmapに基づいて文字からグリフに1対1にマッピングすることによって、GlyphVectorを作成します。GlyphVectorFont. createGlyphVector(FontRenderContext frc, String str)このFont内のUnicode cmapに基づいて文字からグリフに1対1にマッピングすることによって、GlyphVectorを作成します。GlyphVectorFont. createGlyphVector(FontRenderContext frc, CharacterIterator ci)このFont内のUnicode cmapに基づいて指定された文字からグリフに1対1にマッピングすることによって、GlyphVectorを作成します。LineMetricsFont. getLineMetrics(char[] chars, int beginIndex, int limit, FontRenderContext frc)指定された引数で作成されたLineMetricsオブジェクトを返します。LineMetricsFont. getLineMetrics(String str, int beginIndex, int limit, FontRenderContext frc)指定された引数で作成されたLineMetricsオブジェクトを返します。LineMetricsFont. getLineMetrics(String str, FontRenderContext frc)指定されたStringとFontRenderContextで作成されたLineMetricsオブジェクトを返します。LineMetricsFont. getLineMetrics(CharacterIterator ci, int beginIndex, int limit, FontRenderContext frc)指定された引数で作成されたLineMetricsオブジェクトを返します。Rectangle2DFont. getMaxCharBounds(FontRenderContext frc)指定されたFontRenderContextで定義された、最大の境界を持つ文字の境界を返します。Rectangle2DFont. getStringBounds(char[] chars, int beginIndex, int limit, FontRenderContext frc)指定されたFontRenderContext内の指定された文字の配列の論理境界を返します。Rectangle2DFont. getStringBounds(String str, int beginIndex, int limit, FontRenderContext frc)指定されたFontRenderContext内の指定されたStringの論理境界を返します。Rectangle2DFont. getStringBounds(String str, FontRenderContext frc)指定されたFontRenderContext内の指定されたStringの論理境界を返します。Rectangle2DFont. getStringBounds(CharacterIterator ci, int beginIndex, int limit, FontRenderContext frc)指定されたFontRenderContext内の指定されたCharacterIteratorでインデックスが付けられた文字の論理境界を返します。GlyphVectorFont. 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を返します。RectangleGlyphVector. getGlyphPixelBounds(int index, FontRenderContext renderFRC, float x, float y)指定された位置で指定されたFontRenderContextを使ってGraphics内にこのGlyphVectorがレンダリングされるときのインデックスの位置にあるグリフのピクセル境界を返します。RectangleGlyphVector. getPixelBounds(FontRenderContext renderFRC, float x, float y)指定された位置にある指定されたFontRenderContextを使用してグラフィックス内にレンダリングされるときの、このGlyphVectorのピクセル境界を返します。RectangleTextLayout. getPixelBounds(FontRenderContext frc, float x, float y)指定された位置にある指定されたFontRenderContextを使用してグラフィックス内にレンダリングされるときの、このTextLayoutのピクセル境界を返します。FontRenderContext型のパラメータを持つjava.awt.fontのコンストラクタ コンストラクタ 説明 LineBreakMeasurer(AttributedCharacterIterator text, FontRenderContext frc)指定されたテキストに対する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(AttributedCharacterIterator text, FontRenderContext frc)書式付きテキストのイテレータからTextLayoutを構築します。TextMeasurer(AttributedCharacterIterator text, FontRenderContext frc)ソース・テキストからTextMeasurerを構築します。
-