|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
전의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 모든 클래스 | ||||||||||
개요: 상자 | 필드 | constructor | 메소드 | 상세: 필드 | constructor | 메소드 |
java.lang.Object | +--java.awt.font.GraphicAttribute | +--java.awt.font.ShapeGraphicAttribute
ShapeGraphicAttribute
클래스는 TextLayout
에 형상을 표현 하는 GraphicAttribute
의 구현입니다.
GraphicAttribute
필드의 개요 | |
static boolean |
FILL
형상이 전부 칠해지는 것을 나타내는 키입니다. |
static boolean |
STROKE
형상이 1 픽셀폭의 stroke로 표현 되는 것을 나타내는 키입니다. |
클래스 java.awt.font. GraphicAttribute 에서 상속받은 필드 |
BOTTOM_ALIGNMENT , CENTER_BASELINE , HANGING_BASELINE , ROMAN_BASELINE , TOP_ALIGNMENT |
생성자의 개요 | |
ShapeGraphicAttribute (Shape shape,
int alignment,
boolean stroke)
지정된 Shape 의 ShapeGraphicAttribute 를 구축합니다. |
메소드의 개요 | |
void |
draw (Graphics2D graphics,
float x,
float y)
지정된 위치에 그래픽을 표현 합니다. |
boolean |
equals (Object rhs)
이 ShapeGraphicAttribute 가 지정된 Object 와 비교합니다. |
boolean |
equals (ShapeGraphicAttribute rhs)
이 ShapeGraphicAttribute 이 지정된 ShapeGraphicAttribute 와 비교합니다. |
float |
getAdvance ()
이 ShapeGraphicAttribute 의 유효폭을 돌려줍니다. |
float |
getAscent ()
이 ShapeGraphicAttribute 의 아센트를 돌려줍니다. |
Rectangle2D |
getBounds ()
표현 위치를 기점으로서 이 ShapeGraphicAttribute 에 의해 표현 된 모든 비트를 둘러싸는 Rectangle2D 를 돌려줍니다. |
float |
getDescent ()
이 ShapeGraphicAttribute 의 디 센트를 돌려줍니다. |
int |
hashCode ()
이 ShapeGraphicAttribute 의 해시 코드를 돌려줍니다. |
클래스 java.awt.font. GraphicAttribute 에서 상속받은 메소드 |
getAlignment , getJustificationInfo |
클래스 java.lang. Object 에서 상속받은 메소드 |
clone , finalize , getClass , notify , notifyAll , toString , wait , wait , wait |
필드의 상세 |
public static final boolean STROKE
public static final boolean FILL
생성자의 상세 |
public ShapeGraphicAttribute(Shape shape, int alignment, boolean stroke)
Shape
의 ShapeGraphicAttribute
를 구축합니다.
shape
- 표현 대상의 Shape
. Shape
는 이 ShapeGraphicAttribute
의 원점을 기점으로서 호스트 TextLayout
에 표현 된다. 오브젝트는 shape
에의 참조를 저장하는alignment
- ShapeGraphicAttribute
로부터의 배치 방법의 하나stroke
- Shape
의 stroke를 표현 하는 경우는 true
,Shape
를 전부 칠하는 경우는 false
메소드의 상세 |
public float getAscent()
ShapeGraphicAttribute
의 아센트를 돌려줍니다. ShapeGraphicAttribute
의 아센트는 Shape
의 원점과 Shape
의 경계의 상단과의 정의 거리입니다.
GraphicAttribute
내의 getAscent
ShapeGraphicAttribute
의 아센트GraphicAttribute.getBounds()
public float getDescent()
ShapeGraphicAttribute
의 디 센트를 돌려줍니다. ShapeGraphicAttribute
의 디 센트는 Shape
의 원점과 Shape
의 경계의 하단과의 거리입니다.
GraphicAttribute
내의 getDescent
ShapeGraphicAttribute
의 디 센트GraphicAttribute.getBounds()
public float getAdvance()
ShapeGraphicAttribute
의 유효폭을 돌려줍니다. ShapeGraphicAttribute
의 유효폭은 Shape
의 원점과 Shape
의 경계의 우단과의 거리입니다.
GraphicAttribute
내의 getAdvance
ShapeGraphicAttribute
의 유효폭GraphicAttribute.getBounds()
public void draw(Graphics2D graphics, float x, float y)
Shape
는 (x, y)을 원점으로서 표현 됩니다.
GraphicAttribute
내의 draw
graphics
- 그래픽의 표현 area가 되는 Graphics2D
public Rectangle2D getBounds()
ShapeGraphicAttribute
에 의해 표현 된 모든 비트를 둘러싸는 Rectangle2D
를 돌려줍니다. 그래픽은 원점, 아센트, 디 센트, 또는 유효폭을 넘어 표현 되는 일이 있습니다만, 그 경우, 이 메소드의 구현은 그래픽의 표현 위치를 나타내도록 해 주세요.
GraphicAttribute
내의 getBounds
ShapeGraphicAttribute
에 의해 표현 된 모든 비트를 둘러싸는 Rectangle2D
public int hashCode()
ShapeGraphicAttribute
의 해시 코드를 돌려줍니다.
Object
내의 hashCode
ShapeGraphicAttribute
의 해시 코드의 값Object.equals(java.lang.Object)
,
Hashtable
public boolean equals(Object rhs)
ShapeGraphicAttribute
가 지정된 Object
와 비교합니다.
Object
내의 equals
rhs
- 비교 대상의 Object
ShapeGraphicAttribute
가 rhs
와 동일한 경우는 true
, 그렇지 않은 경우는 false
Object.hashCode()
,
Hashtable
public boolean equals(ShapeGraphicAttribute rhs)
ShapeGraphicAttribute
이 지정된 ShapeGraphicAttribute
와 비교합니다.
rhs
- 비교 대상의 ShapeGraphicAttribute
ShapeGraphicAttribute
가 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.