|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
전의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 모든 클래스 | ||||||||||
개요: 상자 | 필드 | constructor | 메소드 | 상세: 필드 | constructor | 메소드 |
java.lang.Object | +--java.awt.geom.RectangularShape | +--java.awt.geom.RoundRectangle2D
RoundRectangle2D
클래스는 위치 (x, y), 사이즈 (w x h), 및 모퉁이를 마는 호의 폭과 높이로 정의되는 둥그스름을 붙인 모퉁이를 가지는 구형을 정의합니다.
이 클래스는 2 차원의 모퉁이를 만 구형을 저장하는 모든 오브젝트의 추상 슈퍼 클래스이며, 좌표의 실제의 기억역표현은 서브 클래스에 맡길 수 있습니다.
중첩된 클래스의 개요 | |
static class |
RoundRectangle2D.Double
Double 클래스는 double 좌표로 지정되는 둥그스름을 붙인 모퉁이를 가지는 구형을 정의합니다. |
static class |
RoundRectangle2D.Float
Float 클래스는 float 좌표로 지정되는 과도를 만 구형을 정의합니다. |
생성자의 개요 | |
protected |
RoundRectangle2D ()
이것은 인스턴스를 직접은 생성할 수 없는 추상 클래스입니다. |
메소드의 개요 | |
boolean |
contains (double x,
double y)
지정된 좌표가 이 RoundRectangle2D 의 경계내에 있을지 어떨지를 판정합니다. |
boolean |
contains (double x,
double y,
double w,
double h)
이 RoundRectangle2D 의 내부가, 지정된 구형 좌표 세트를 완전하게 내포 할지 어떨지를 판정합니다. |
abstract double |
getArcHeight ()
모퉁이를 마는 호의 높이를 돌려줍니다. |
abstract double |
getArcWidth ()
모퉁이를 마는 호의 폭을 돌려줍니다. |
PathIterator |
getPathIterator (AffineTransform at)
이 RoundRectangle2D 의 경계를 정의하는 반복 오브젝트를 돌려줍니다. |
boolean |
intersects (double x,
double y,
double w,
double h)
이 RoundRectangle2D 의 내부가, 지정된 구형 좌표 세트의 내부와 교차할지 어떨지를 판정합니다. |
void |
setFrame (double x,
double y,
double w,
double h)
이 RoundRectangle2D 의 외부 경계의 위치 및 사이즈를, 지정된 구형치로 설정합니다. |
abstract void |
setRoundRect (double x,
double y,
double w,
double h,
double arcWidth,
double arcHeight)
이 RoundRectangle2D 의 위치, 사이즈, 및 모퉁이의 반경을, 지정된 double 치로 설정합니다. |
void |
setRoundRect (RoundRectangle2D rr)
이 RoundRectangle2D 를, 지정된 RoundRectangle2D 와 같게 되도록(듯이) 설정합니다. |
클래스 java.awt.geom. RectangularShape 에서 상속받은 메소드 |
clone , contains , contains , getBounds , getCenterX , getCenterY , getFrame , getHeight , getMaxX , getMaxY , getMinX , getMinY , getPathIterator , getWidth , getX , getY , intersects , isEmpty , setFrame , setFrame , setFrameFromCenter , setFrameFromCenter , setFrameFromDiagonal , setFrameFromDiagonal |
클래스 java.lang. Object 에서 상속받은 메소드 |
equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait |
인터페이스 java.awt. Shape 에서 상속받은 메소드 |
getBounds2D |
생성자의 상세 |
protected RoundRectangle2D()
RoundRectangle2D.Float
,
RoundRectangle2D.Double
메소드의 상세 |
public abstract double getArcWidth()
RoundRectangle2D
의 모퉁이를 마는 호의 폭public abstract double getArcHeight()
RoundRectangle2D
의 모퉁이를 마는 호의 높이public abstract void setRoundRect(double x, double y, double w, double h, double arcWidth, double arcHeight)
RoundRectangle2D
의 위치, 사이즈, 및 모퉁이의 반경을, 지정된 double
치로 설정합니다.
w
- 이 RoundRectangle2D
의 폭h
- 이 RoundRectangle2D
의 높이arcWidth
- 이 RoundRectangle2D
의 호의 폭arcHeight
- 이 RoundRectangle2D
의 호의 높이public void setRoundRect(RoundRectangle2D rr)
RoundRectangle2D
를, 지정된 RoundRectangle2D
와 같게 되도록(듯이) 설정합니다.
rr
- 지정된 RoundRectangle2D
public void setFrame(double x, double y, double w, double h)
RoundRectangle2D
의 외부 경계의 위치 및 사이즈를, 지정된 구형치로 설정합니다.
RectangularShape
내의 setFrame
w
- 이 RoundRectangle2D
의 폭h
- 이 RoundRectangle2D
의 높이RectangularShape.getFrame()
public boolean contains(double x, double y)
RoundRectangle2D
의 경계내에 있을지 어떨지를 판정합니다.
RoundRectangle2D
의 경계내에 있는 경우는 true
, 그렇지 않은 경우는 false
public boolean intersects(double x, double y, double w, double h)
RoundRectangle2D
의 내부가, 지정된 구형 좌표 세트의 내부와 교차할지 어떨지를 판정합니다.
w
- 지정된 구형 좌표 세트의 폭h
- 지정된 구형 좌표 세트의 높이
RoundRectangle2D
의 내부가 지정된 구형 좌표 세트의 내부와 교차하는 경우는 true
Area
public boolean contains(double x, double y, double w, double h)
RoundRectangle2D
의 내부가, 지정된 구형 좌표 세트를 완전하게 내포 할지 어떨지를 판정합니다.
w
- 지정된 구형 좌표 세트의 폭h
- 지정된 구형 좌표 세트의 높이
RoundRectangle2D
의 내부가 지정된 구형 좌표 세트를 완전하게 내포 하는 경우는 true
, 그렇지 않은 경우는 false
Area
,
Shape.intersects(double, double, double, double)
public PathIterator getPathIterator(AffineTransform at)
RoundRectangle2D
의 경계를 정의하는 반복 오브젝트를 돌려줍니다. 이 클래스의 반복자는 multi-thread에 대해서 안전합니다. 즉 이 RoundRectangle2D
클래스는 이 RoundRectangle2D
오브젝트의 지오메트리에 대한 변경이, 이 지오메트리에 대해 벌써 진행중의 반복 처리에 영향을 주지 않는 것을 프로텍션합니다.
at
- 반복 처리로 돌려주어지는 좌표에 적용되는 옵션의 AffineTransform
. 변환되어 있지 않은 좌표가 필요한 경우는 null
RoundRectangle2D
의 윤곽의 지오메트리를 한 번에 1 세그먼트(segment)씩 돌려주는 PathIterator
오브젝트
|
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.