- java.lang.Object
- 
- java.awt.font.GraphicAttribute
- 
- java.awt.font.ImageGraphicAttribute
 
 
- 
 public final class ImageGraphicAttribute extends GraphicAttribute ImageGraphicAttributeクラスは、TextLayoutにイメージをレンダリングするGraphicAttributeの実装です。- 関連項目:
- GraphicAttribute
 
- 
- 
フィールドのサマリー- 
クラス java.awt.font.GraphicAttributeで宣言されたフィールドBOTTOM_ALIGNMENT, CENTER_BASELINE, HANGING_BASELINE, ROMAN_BASELINE, TOP_ALIGNMENT
 
- 
 - 
コンストラクタのサマリーコンストラクタ コンストラクタ 説明 ImageGraphicAttribute(Image image, int alignment)指定されたImageからImageGraphicAttributeを構築します。ImageGraphicAttribute(Image image, int alignment, float originX, float originY)指定されたImageからImageGraphicAttributeを構築します。
 - 
メソッドのサマリー修飾子と型 メソッド 説明 booleanequals(ImageGraphicAttribute rhs)このImageGraphicAttributeを指定されたImageGraphicAttributeと比較します。booleanequals(Object rhs)このImageGraphicAttributeを指定されたObjectと比較します。floatgetAdvance()このImageGraphicAttributeの有効幅を返します。floatgetAscent()このImageGraphicAttributeのアセントを返します。Rectangle2DgetBounds()このImageGraphicAttributeによってレンダリングされる全ビットを囲むRectangle2Dを返します。これは、レンダリング位置を基準にして示されます。floatgetDescent()このImageGraphicAttributeのディセントを返します。inthashCode()このImageGraphicAttributeのハッシュ・コードを返します。- 
クラス java.awt.font.GraphicAttributeで宣言されたメソッドdraw, getAlignment, getJustificationInfo, getOutline
 
- 
 
- 
- 
- 
コンストラクタの詳細- 
ImageGraphicAttributepublic ImageGraphicAttribute(Image image, int alignment) 指定されたImageからImageGraphicAttributeを構築します。 原点は(0, 0)です。- パラメータ:
- image- この- ImageGraphicAttributeによってレンダリングされる- Image。 このオブジェクトは- imageに対する参照を保持します。
- alignment- 次に対する配置方法の1つ:- ImageGraphicAttribute
 
 - 
ImageGraphicAttributepublic ImageGraphicAttribute(Image image, int alignment, float originX, float originY) 指定されたImageからImageGraphicAttributeを構築します。Image内の点(originX,originY)は、テキスト内のImageGraphicAttributeの原点に現われます。- パラメータ:
- image- この- ImageGraphicAttributeによってレンダリングされる- Image。 このオブジェクトは- imageに対する参照を保持します。
- alignment- 次に対する配置方法の1つ:- ImageGraphicAttribute
- originX- テキスト行内の- ImageGraphicAttributeの原点に現れる、- Image内の点のX座標。
- originY- テキスト行内の- ImageGraphicAttributeの原点に現れる、- Image内の点のY座標。
 
 
- 
 - 
メソッドの詳細- 
getAscentpublic float getAscent() このImageGraphicAttributeのアセントを返します。ImageGraphicAttributeのアセントとは、イメージの上端から原点までの距離のことです。- 定義:
- getAscent、クラス:- GraphicAttribute
- 戻り値:
- このImageGraphicAttributeのアセント。
- 関連項目:
- GraphicAttribute.getBounds()
 
 - 
getDescentpublic float getDescent() このImageGraphicAttributeのディセントを返します。ImageGraphicAttributeのディセントとは、原点からイメージの下端までの距離のことです。- 定義:
- getDescent、クラス:- GraphicAttribute
- 戻り値:
- このImageGraphicAttributeのディセント。
- 関連項目:
- GraphicAttribute.getBounds()
 
 - 
getAdvancepublic float getAdvance() このImageGraphicAttributeの有効幅を返します。ImageGraphicAttributeの有効幅とは、原点からイメージの右端までの距離のことです。- 定義:
- getAdvance、クラス:- GraphicAttribute
- 戻り値:
- このImageGraphicAttributeの有効幅。
- 関連項目:
- GraphicAttribute.getBounds()
 
 - 
getBoundspublic Rectangle2D getBounds() このImageGraphicAttributeによってレンダリングされる全ビットを囲むRectangle2Dを返します。これは、レンダリング位置を基準にして示されます。 グラフィックは、原点、アセント、ディセント、有効幅を超えてレンダリングできますが、その場合はグラフィックをレンダリングする位置をこのメソッドの実装で示す必要があります。- オーバーライド:
- getBounds、クラス:- GraphicAttribute
- 戻り値:
- このImageGraphicAttributeによってレンダリングされる全ビットを囲むRectangle2D。
 
 - 
hashCodepublic int hashCode() このImageGraphicAttributeのハッシュ・コードを返します。- オーバーライド:
- hashCode、クラス:- Object
- 戻り値:
- このオブジェクトのハッシュ・コード値。
- 関連項目:
- Object.equals(java.lang.Object),- System.identityHashCode(java.lang.Object)
 
 - 
equalspublic boolean equals(Object rhs) このImageGraphicAttributeを指定されたObjectと比較します。- オーバーライド:
- equals、クラス:- Object
- パラメータ:
- rhs- 等しいかどうかを比較する- Object
- 戻り値:
- このImageGraphicAttributeがrhsの場合はtrue、それ以外の場合はfalse。
- 関連項目:
- Object.hashCode()、- HashMap
 
 - 
equalspublic boolean equals(ImageGraphicAttribute rhs) このImageGraphicAttributeを指定されたImageGraphicAttributeと比較します。- パラメータ:
- rhs- 等しいかどうかを比較する- ImageGraphicAttribute
- 戻り値:
- このImageGraphicAttributeがrhsの場合はtrue、それ以外の場合はfalse。
 
 
- 
 
-