|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 전의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
| 개요: 상자 | 필드 | 생성자 | 메소드 | 상세 : 필드 | 생성자 | 메소드 | |||||||||
java.lang.Objectjava.awt.font.GraphicAttribute
java.awt.font.ShapeGraphicAttribute
public final class ShapeGraphicAttribute
ShapeGraphicAttribute 클래스는,TextLayout 에 형상을 draw 하는 GraphicAttribute 의 구현입니다.
GraphicAttribute | 필드의 개요 | |
|---|---|
static boolean |
FILL
전부 칠할 필요가 있는 형상을 나타내는 키입니다. |
static boolean |
STROKE
1 픽셀폭의 stroke로 draw 할 필요가 있는 형상을 나타내는 키입니다. |
| 클래스 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)
GraphicAttribute 를, 지정된 위치에 draw 합니다. |
boolean |
equals (Object rhs)
이 ShapeGraphicAttribute 를, 지정된 Object 와 비교합니다. |
boolean |
equals (ShapeGraphicAttribute rhs)
이 ShapeGraphicAttribute 을, 지정된 ShapeGraphicAttribute 와 비교합니다. |
float |
getAdvance ()
이 ShapeGraphicAttribute 의 유효폭을 돌려줍니다. |
float |
getAscent ()
이 ShapeGraphicAttribute 의 아센트를 돌려줍니다. |
Rectangle2D |
getBounds ()
이 ShapeGraphicAttribute 에 의해 draw 되는 전비트를 둘러싸는 Rectangle2D 를 돌려줍니다. |
float |
getDescent ()
이 ShapeGraphicAttribute 의 디 센트를 돌려줍니다. |
Shape |
getOutline (AffineTransform tx)
이 ShapeGraphicAttribute 에 의해 draw 되는 영역을 나타내는 Shape 를 돌려줍니다. |
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 - draw 하는 Shape. Shape 는
호스트 TextLayout 의
이 ShapeGraphicAttribute 의 원점을 원점으로 해,
draw 된다. 이 객체는 shape 에의 참조를
보관 유지하는alignment - 이 ShapeGraphicAttribute 의
배치 방법의 1 개stroke - Shape 를 stroke로 draw 할 필요가 있는 경우는 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)
GraphicAttribute 를, 지정된 위치에 draw 합니다.
GraphicAttribute 내의 draw graphics - 그래픽의 draw처의
Graphics2D x - 그래픽이 draw 되는 사용자 공간 X 좌표y - 그래픽이 draw 되는 사용자 공간 Y 좌표public Rectangle2D getBounds()
ShapeGraphicAttribute 에 의해 draw 되는 전비트를 둘러싸는 Rectangle2D 를 돌려줍니다. 이것은, draw 위치를 기준으로 해 나타납니다. 그래픽은, 원점, 아센트, 디 센트, 유효폭을 넘어 draw 할 수 있습니다만, 그 경우는 그래픽을 draw 하는 위치를 이 메소드의 구현으로 가리킬 필요가 있습니다.
GraphicAttribute 내의 getBounds ShapeGraphicAttribute 에 의해 draw 된다
전비트를 둘러싸는 Rectangle2Dpublic Shape getOutline(AffineTransform tx)
ShapeGraphicAttribute 에 의해 draw 되는 영역을 나타내는 Shape 를 돌려줍니다. 이 메소드는,TextLayout 가 텍스트의 윤곽을 돌려주도록(듯이) 요구되었을 때에 사용됩니다. (변환되어 있지 않다) 형상은,getBounds 에 의해 반환되는 구형 경계의 안쪽에 들어가고 있을 필요가 있습니다.
GraphicAttribute 내의 getOutline tx - 이 ShapeGraphicAttribute 의 윤곽에 적용한다
임의 지정 AffineTransform null 를 지정할 수 있다.
Shapepublic 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,
그렇지 않은 경우는 falseObject.hashCode() ,
Hashtable public boolean equals(ShapeGraphicAttribute rhs)
ShapeGraphicAttribute 을, 지정된 ShapeGraphicAttribute 와 비교합니다.
rhs - 동일한지 어떤지를 비교한다
ShapeGraphicAttribute
ShapeGraphicAttribute 이
rhs 와 동일한 경우는 true,
그렇지 않은 경우는 false
|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 전의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
| 개요: 상자 | 필드 | 생성자 | 메소드 | 상세 : 필드 | 생성자 | 메소드 | |||||||||
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.