public final class ImageGraphicAttribute extends GraphicAttribute
GraphicAttributeBOTTOM_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 を構築します。 |
| 修飾子と型 | メソッドと説明 |
|---|---|
void |
draw(Graphics2D graphics, float x, float y)
この
GraphicAttribute を指定された位置にレンダリングします。 |
boolean |
equals(ImageGraphicAttribute rhs)
この
ImageGraphicAttribute を指定された ImageGraphicAttribute と比較します。 |
boolean |
equals(Object rhs)
この
ImageGraphicAttribute を指定された Object と比較します。 |
float |
getAdvance()
この
ImageGraphicAttribute の有効幅を返します。 |
float |
getAscent()
この
ImageGraphicAttribute のアセントを返します。 |
Rectangle2D |
getBounds()
この
ImageGraphicAttribute によってレンダリングされる全ビットを囲む Rectangle2D を返します。これは、レンダリング位置を基準にして示されます。 |
float |
getDescent()
この
ImageGraphicAttribute のディセントを返します。 |
int |
hashCode()
この
ImageGraphicAttribute のハッシュコードを返します。 |
getAlignment, getJustificationInfo, getOutlinepublic ImageGraphicAttribute(Image image, int alignment)
Image から ImageGraphicAttribute を構築します。原点は (0, 0) です。image - この ImageGraphicAttribute によってレンダリングされる Image。このオブジェクトは image に対する参照を保持します。alignment - 次に対する配置方法の 1 つ: ImageGraphicAttributepublic ImageGraphicAttribute(Image image, int alignment, float originX, float originY)
Image から ImageGraphicAttribute を構築します。Image 内の点 (originX, originY) は、テキスト内の ImageGraphicAttribute の原点に現われます。image - この ImageGraphicAttribute によってレンダリングされる Image。このオブジェクトは image に対する参照を保持します。alignment - 次に対する配置方法の 1 つ: ImageGraphicAttributeoriginX - テキスト行内の ImageGraphicAttribute の原点に現れる、Image 内の点の X 座標。originY - テキスト行内の ImageGraphicAttribute の原点に現れる、Image 内の点の Y 座標。public float getAscent()
ImageGraphicAttribute のアセントを返します。ImageGraphicAttribute のアセントとは、イメージの上端から原点までの距離のことです。getAscent、クラス: GraphicAttributeImageGraphicAttribute のアセント。GraphicAttribute.getBounds()public float getDescent()
ImageGraphicAttribute のディセントを返します。ImageGraphicAttribute のディセントとは、原点からイメージの下端までの距離のことです。getDescent、クラス: GraphicAttributeImageGraphicAttribute のディセント。GraphicAttribute.getBounds()public float getAdvance()
ImageGraphicAttribute の有効幅を返します。ImageGraphicAttribute の有効幅とは、原点からイメージの右端までの距離のことです。getAdvance、クラス: GraphicAttributeImageGraphicAttribute の有効幅。GraphicAttribute.getBounds()public Rectangle2D getBounds()
ImageGraphicAttribute によってレンダリングされる全ビットを囲む Rectangle2D を返します。これは、レンダリング位置を基準にして示されます。グラフィックは、原点、アセント、ディセント、有効幅を超えてレンダリングできますが、その場合はグラフィックをレンダリングする位置をこのメソッドの実装で示す必要があります。getBounds、クラス: GraphicAttributeImageGraphicAttribute によってレンダリングされる全ビットを囲む Rectangle2D。public void draw(Graphics2D graphics, float x, float y)
GraphicAttribute を指定された位置にレンダリングします。draw、クラス: GraphicAttributegraphics - グラフィックのレンダリング先の Graphics2Dx - グラフィックがレンダリングされるユーザー空間 X 座標y - グラフィックがレンダリングされるユーザー空間 Y 座標public int hashCode()
ImageGraphicAttribute のハッシュコードを返します。hashCode、クラス: ObjectObject.equals(java.lang.Object), System.identityHashCode(java.lang.Object)public boolean equals(Object rhs)
ImageGraphicAttribute を指定された Object と比較します。equals、クラス: Objectrhs - 等しいかどうかを比較する ObjectImageGraphicAttribute が rhs の場合は true、それ以外の場合は false。Object.hashCode()、HashMappublic boolean equals(ImageGraphicAttribute rhs)
ImageGraphicAttribute を指定された ImageGraphicAttribute と比較します。rhs - 等しいかどうかを比較する ImageGraphicAttributeImageGraphicAttribute が rhs の場合は true、それ以外の場合は false。 バグまたは機能を送信
詳細な API リファレンスおよび開発者ドキュメントについては、Java SE のドキュメントを参照してください。そのドキュメントには、概念的な概要、用語の定義、回避方法、有効なコード例などの、開発者を対象にしたより詳細な説明が含まれています。
Copyright © 1993, 2013, Oracle and/or its affiliates. All rights reserved.