|
JavaTM Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요 : 상자 | 필드 | 생성자 | 메소드 | 상세 : 필드 | 생성자 | 메소드 |
java.lang.Objectjava.awt.geom.RectangularShape
java.awt.geom.RoundRectangle2D
java.awt.geom.RoundRectangle2D.Float
public static class RoundRectangle2D.Float
Float
클래스는,float
좌표로 지정되는, 모퉁이를 만 구형을 정의합니다.
상자의 클래스의 개요 |
---|
클래스 java.awt.geom. RoundRectangle2D 로부터 상속된 상자의 클래스/인터페이스 |
---|
RoundRectangle2D.Double , RoundRectangle2D.Float |
필드의 개요 | |
---|---|
float |
archeight
모퉁이를 마는 호의 높이입니다. |
float |
arcwidth
모퉁이를 마는 호의 폭입니다. |
float |
height
이 RoundRectangle2D 의 높이 |
float |
width
이 RoundRectangle2D 의 폭 |
float |
x
이 RoundRectangle2D 의 X 좌표 |
float |
y
이 RoundRectangle2D 의 Y 좌표 |
생성자 의 개요 | |
---|---|
RoundRectangle2D.Float ()
새로운 RoundRectangle2D 를 구축해, 위치 (0.0, 0. 0), 사이즈 (0.0, 0. 0), 및 모퉁이의 호의 반경 0.0 에 초기화합니다. |
|
RoundRectangle2D.Float (float x,
float y,
float w,
float h,
float arcw,
float arch)
지정된 float 형의 좌표로부터 RoundRectangle2D 를 구축 및 초기화합니다. |
메소드의 개요 | |
---|---|
double |
getArcHeight ()
모퉁이를 마는 호의 높이를 돌려줍니다. |
double |
getArcWidth ()
모퉁이를 마는 호의 폭을 돌려줍니다. |
Rectangle2D |
getBounds2D ()
고정밀도로 getBounds 메소드보다 정밀한,Shape 의 바운딩 박스를 돌려줍니다. |
double |
getHeight ()
표시범위 구형의 높이를 double 정밀도로 돌려줍니다. |
double |
getWidth ()
표시범위 구형의 폭을 double 정밀도로 돌려줍니다. |
double |
getX ()
표시범위 구형의 좌상구석의 X 좌표를 double 정밀도로 돌려줍니다. |
double |
getY ()
표시범위 구형의 좌상구석의 Y 좌표를 double 정밀도로 돌려줍니다. |
boolean |
isEmpty ()
RectangularShape 가 빈 상태(empty)인가 어떤가를 판정합니다. |
void |
setRoundRect (double x,
double y,
double w,
double h,
double arcw,
double arch)
이 RoundRectangle2D 의 위치, 사이즈, 및 모퉁이의 반경을, 지정된 double 치로 설정합니다. |
void |
setRoundRect (float x,
float y,
float w,
float h,
float arcw,
float arch)
이 RoundRectangle2D 의 위치, 사이즈, 및 모퉁이의 반경을, 지정된 float 치로 설정합니다. |
void |
setRoundRect (RoundRectangle2D rr)
이 RoundRectangle2D 를, 지정된 RoundRectangle2D 와 같게 되도록(듯이) 설정합니다. |
클래스 java.awt.geom. RoundRectangle2D 로부터 상속된 메소드 |
---|
contains , contains , equals , getPathIterator , hashCode , intersects , setFrame |
클래스 java.awt.geom. RectangularShape 로부터 상속된 메소드 |
---|
clone , contains , contains , getBounds , getCenterX , getCenterY , getFrame , getMaxX , getMaxY , getMinX , getMinY , getPathIterator , intersects , setFrame , setFrame , setFrameFromCenter , setFrameFromCenter , setFrameFromDiagonal , setFrameFromDiagonal |
클래스 java.lang. Object 로부터 상속된 메소드 |
---|
finalize , getClass , notify , notifyAll , toString , wait , wait , wait |
필드의 상세 |
---|
public float x
RoundRectangle2D
의 X 좌표
public float y
RoundRectangle2D
의 Y 좌표
public float width
RoundRectangle2D
의 폭
public float height
RoundRectangle2D
의 높이
public float arcwidth
public float archeight
생성자 의 상세 |
---|
public RoundRectangle2D.Float()
RoundRectangle2D
를 구축해, 위치 (0.0, 0. 0), 사이즈 (0.0, 0. 0), 및 모퉁이의 호의 반경 0.0 에 초기화합니다.
public RoundRectangle2D.Float(float x, float y, float w, float h, float arcw, float arch)
float
형의 좌표로부터 RoundRectangle2D
를 구축 및 초기화합니다.
x
- 새롭게 구축되는 RoundRectangle2D
의
X 좌표y
- 새롭게 구축되는 RoundRectangle2D
의
Y 좌표w
- 새롭게 구축되는 RoundRectangle2D
에
설정되는 폭h
- 새롭게 구축되는 RoundRectangle2D
에
설정되는 높이arcw
- 새롭게 구축된 RoundRectangle2D
의
모퉁이를 마는데 사용한다
호의 폭
arch
- 새롭게 구축된 RoundRectangle2D
의
모퉁이를 마는데 사용한다
호의 높이
메소드의 상세 |
---|
public double getX()
double
정밀도로 돌려줍니다.
RectangularShape
내의 getX
public double getY()
double
정밀도로 돌려줍니다.
RectangularShape
내의 getY
public double getWidth()
double
정밀도로 돌려줍니다.
RectangularShape
내의 getWidth
public double getHeight()
double
정밀도로 돌려줍니다.
RectangularShape
내의 getHeight
public double getArcWidth()
RoundRectangle2D
내의 getArcWidth
RoundRectangle2D
의 모퉁이를
마는 호의 폭public double getArcHeight()
RoundRectangle2D
내의 getArcHeight
RoundRectangle2D
의 모퉁이를
마는 호의 높이public boolean isEmpty()
RectangularShape
가 빈 상태(empty)인가 어떤가를 판정합니다. 빈 상태(empty)의 경우는,RectangularShape
에 영역은 없습니다.
RectangularShape
내의 isEmpty
RectangularShape
가 빈 상태(empty)인 경우는 true
,
그렇지 않은 경우는 false
public void setRoundRect(float x, float y, float w, float h, float arcw, float arch)
RoundRectangle2D
의 위치, 사이즈, 및 모퉁이의 반경을, 지정된 float
치로 설정합니다.
x
- 이 RoundRectangle2D
의 위치를
설정하는 X 좌표y
- 이 RoundRectangle2D
의 위치를
설정하는 Y 좌표w
- 이 RoundRectangle2D
에
설정되는 폭h
- 이 RoundRectangle2D
에
설정되는 높이arcw
- 이 RoundRectangle2D
의 호를
설정하는 폭arch
- 이 RoundRectangle2D 의 호를
설정하는 높이public void setRoundRect(double x, double y, double w, double h, double arcw, double arch)
RoundRectangle2D
의 위치, 사이즈, 및 모퉁이의 반경을, 지정된 double
치로 설정합니다.
RoundRectangle2D
내의 setRoundRect
x
- 이 RoundRectangle2D
의 위치를
설정하는 X 좌표y
- 이 RoundRectangle2D
의 위치를
설정하는 Y 좌표w
- 이 RoundRectangle2D
에
설정하는 폭h
- 이 RoundRectangle2D
에
설정하는 높이arcw
- 이 RoundRectangle2D
의 호를
설정하는 폭arch
- 이 RoundRectangle2D
의 호를
설정하는 높이public void setRoundRect(RoundRectangle2D rr)
RoundRectangle2D
를, 지정된 RoundRectangle2D
와 같게 되도록(듯이) 설정합니다.
RoundRectangle2D
내의 setRoundRect
rr
- 지정된 RoundRectangle2D
public Rectangle2D getBounds2D()
getBounds
메소드보다 정밀한,Shape
의 바운딩 박스를 돌려줍니다. 반환된 Rectangle2D
가 Shape
를 둘러싸는 최소의 바운딩 박스이다고는 할 수 없습니다. 나타난 Rectangle2D
내에 Shape
가 완전하게 수습된다고 할 뿐입니다. 반환값을, 배정밀도치를 사용해 치수를 포함하는 Rectangle2D
의 인스턴스로 할 수도 있기 (위해)때문에, 이 메소드에 의해 반환되는 바운딩 박스는, 일반적으로,getBounds
메소드에 의해 반환되는 바운딩 박스보다 딱 한 것이 되어, 오버플로우를 위해서(때문에) 실패할 것은 없습니다.
Shape
내의 getBounds2D
Shape
의 고정밀도 바운딩 박스를 나타낸다
Rectangle2D
의 인스턴스Shape.getBounds()
|
JavaTM Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요 : 상자 | 필드 | 생성자 | 메소드 | 상세 : 필드 | 생성자 | 메소드 |
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.