モジュール java.desktop
パッケージ java.awt.font

クラスImageGraphicAttribute

    • コンストラクタの詳細

      • ImageGraphicAttribute

        public ImageGraphicAttribute​(Image image,
                                     int alignment)
        指定されたImageからImageGraphicAttributeを構築します。 原点は(0, 0)です。
        パラメータ:
        image - このImageGraphicAttributeによってレンダリングされるImage このオブジェクトはimageに対する参照を保持します。
        alignment - 次に対する配置方法の1つ: ImageGraphicAttribute
      • ImageGraphicAttribute

        public ImageGraphicAttribute​(Image image,
                                     int alignment,
                                     float originX,
                                     float originY)
        指定されたImageからImageGraphicAttributeを構築します。 Image内の点(originXoriginY)は、テキスト内のImageGraphicAttributeの原点に現われます。
        パラメータ:
        image - このImageGraphicAttributeによってレンダリングされるImage このオブジェクトはimageに対する参照を保持します。
        alignment - 次に対する配置方法の1つ: ImageGraphicAttribute
        originX - テキスト行内のImageGraphicAttributeの原点に現れる、Image内の点のX座標。
        originY - テキスト行内のImageGraphicAttributeの原点に現れる、Image内の点のY座標。
    • メソッドの詳細

      • getAscent

        public float getAscent()
        このImageGraphicAttributeのアセントを返します。 ImageGraphicAttributeのアセントとは、イメージの上端から原点までの距離のことです。
        定義:
        getAscent、クラス: GraphicAttribute
        戻り値:
        このImageGraphicAttributeのアセント。
        関連項目:
        GraphicAttribute.getBounds()
      • getDescent

        public float getDescent()
        このImageGraphicAttributeのディセントを返します。 ImageGraphicAttributeのディセントとは、原点からイメージの下端までの距離のことです。
        定義:
        getDescent、クラス: GraphicAttribute
        戻り値:
        このImageGraphicAttributeのディセント。
        関連項目:
        GraphicAttribute.getBounds()
      • getAdvance

        public float getAdvance()
        このImageGraphicAttributeの有効幅を返します。 ImageGraphicAttributeの有効幅とは、原点からイメージの右端までの距離のことです。
        定義:
        getAdvance、クラス: GraphicAttribute
        戻り値:
        このImageGraphicAttributeの有効幅。
        関連項目:
        GraphicAttribute.getBounds()
      • getBounds

        public Rectangle2D getBounds()
        このImageGraphicAttributeによってレンダリングされる全ビットを囲むRectangle2Dを返します。これは、レンダリング位置を基準にして示されます。 グラフィックは、原点、アセント、ディセント、有効幅を超えてレンダリングできますが、その場合はグラフィックをレンダリングする位置をこのメソッドの実装で示す必要があります。
        オーバーライド:
        getBounds、クラス: GraphicAttribute
        戻り値:
        このImageGraphicAttributeによってレンダリングされる全ビットを囲むRectangle2D
      • equals

        public boolean equals​(Object rhs)
        このImageGraphicAttributeを指定されたObjectと比較します。
        オーバーライド:
        equals 、クラス:  Object
        パラメータ:
        rhs - 等しいかどうかを比較するObject
        戻り値:
        このImageGraphicAttributerhsの場合はtrue、それ以外の場合はfalse
        関連項目:
        Object.hashCode()HashMap
      • equals

        public boolean equals​(ImageGraphicAttribute rhs)
        このImageGraphicAttributeを指定されたImageGraphicAttributeと比較します。
        パラメータ:
        rhs - 等しいかどうかを比較するImageGraphicAttribute
        戻り値:
        このImageGraphicAttributerhsの場合はtrue、それ以外の場合はfalse