|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
전의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 모든 클래스 | ||||||||||
개요: 상자 | 필드 | constructor | 메소드 | 상세: 필드 | constructor | 메소드 |
java.lang.Object | +--java.awt.font.GraphicAttribute | +--java.awt.font.ImageGraphicAttribute
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 를 구축합니다. |
메소드의 개요 | |
void |
draw (Graphics2D graphics,
float x,
float y)
그래픽을, 지정된 위치에 표현 합니다. |
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 의 해시 코드를 돌려줍니다. |
클래스 java.awt.font. GraphicAttribute 에서 상속받은 메소드 |
getAlignment , getJustificationInfo |
클래스 java.lang. Object 에서 상속받은 메소드 |
clone , finalize , getClass , notify , notifyAll , toString , wait , wait , wait |
생성자의 상세 |
public ImageGraphicAttribute(Image image, int alignment)
Image
로부터 ImageGraphicAttribute
를 구축합니다. 원점은 (0, 0)입니다.
image
- 이 ImageGraphicAttribute
에 의해 표현 되는 Image
. 이 오브젝트는 image
에 대한 참조를 보관 유지하는alignment
- 이 ImageGraphicAttribute
의 배치 방법의 1 개public ImageGraphicAttribute(Image image, int alignment, float originX, float originY)
Image
로부터 ImageGraphicAttribute
를 구축합니다. Image
의 포인트 (originX
, originY
)는 텍스트내의 ImageGraphicAttribute
의 원점에 나타납니다.
image
- 이 ImageGraphicAttribute
에 의해 표현 되는 Image
. 이 오브젝트는 image
에 대한 참조를 보관 유지하는alignment
- 이 ImageGraphicAttribute
의 배치 방법의 1 개메소드의 상세 |
public float getAscent()
ImageGraphicAttribute
의 아센트를 돌려줍니다. ImageGraphicAttribute
의 아센트란, 이미지의 상단에서 원점까지의 거리입니다.
GraphicAttribute
내의 getAscent
ImageGraphicAttribute
의 아센트GraphicAttribute.getBounds()
public float getDescent()
ImageGraphicAttribute
의 디 센트를 돌려줍니다. ImageGraphicAttribute
의 디 센트란, 원점으로부터 이미지의 하단까지의 거리입니다.
GraphicAttribute
내의 getDescent
ImageGraphicAttribute
의 디 센트GraphicAttribute.getBounds()
public float getAdvance()
ImageGraphicAttribute
의 유효폭을 돌려줍니다. ImageGraphicAttribute
의 유효폭이란, 원점으로부터 이미지의 우단까지의 거리입니다.
GraphicAttribute
내의 getAdvance
ImageGraphicAttribute
의 유효폭GraphicAttribute.getBounds()
public Rectangle2D getBounds()
ImageGraphicAttribute
에 의해 표현 되는 전비트를 둘러싸는 Rectangle2D
를 돌려줍니다. 이것은 표현 위치를 기준으로 해 나타납니다. 그래픽은 원점, 아센트, 디 센트, 유효폭을 넘어 표현 할 수 있습니다만, 그 경우는 그래픽을 표현 하는 위치를 이 메소드의 구현으로 가리킬 필요가 있습니다.
GraphicAttribute
내의 getBounds
ImageGraphicAttribute
에 의해 표현 되는 전비트를 둘러싸는 Rectangle2D
public void draw(Graphics2D graphics, float x, float y)
GraphicAttribute
내의 draw
graphics
- 그래픽의 표현처의 Graphics2D
public int hashCode()
ImageGraphicAttribute
의 해시 코드를 돌려줍니다.
Object
내의 hashCode
Object.equals(java.lang.Object)
,
Hashtable
public boolean equals(Object rhs)
ImageGraphicAttribute
를, 지정된 Object
와 비교합니다.
Object
내의 equals
rhs
- 동일한지 어떤지를 비교하는 Object
ImageGraphicAttribute
가 rhs
와 동일한 경우는 true
, 그렇지 않은 경우는 false
Object.hashCode()
,
Hashtable
public boolean equals(ImageGraphicAttribute rhs)
ImageGraphicAttribute
을, 지정된 ImageGraphicAttribute
와 비교합니다.
rhs
- 동일한지 어떤지를 비교하는 ImageGraphicAttribute
ImageGraphicAttribute
가 rhs
와 동일한 경우는 true
, 그렇지 않은 경우는 false
|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
전의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 모든 클래스 | ||||||||||
개요: 상자 | 필드 | constructor | 메소드 | 상세: 필드 | constructor | 메소드 |
Java, Java 2 D, 및 JDBC 는 미국 및 그 외의 나라에 있어서의 미국 Sun Microsystems, Inc. 의 상표 혹은 등록상표입니다.
Copyright 1993-2002 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.