Rect

Inheritance: java.lang.Object

All Implemented Interfaces: com.aspose.threed.Struct, java.io.Serializable

public final class Rect implements Struct<Rect>, Serializable

사각형을 나타내는 클래스

생성자

생성자설명
Rect(int x, int y, int width, int height)클래스 Rect의 생성자
Rect()

메서드

메서드설명
clone()
contains(int x, int y)주어진 점이 사각형 안에 있으면 true를 반환합니다.
copyFrom(Rect src)
equals(Object obj)
getBottom()사각형의 아래쪽을 가져옵니다
getClass()
getHeight()크기의 높이를 가져옵니다
getLeft()사각형의 왼쪽을 가져옵니다
getRight()사각형의 오른쪽을 가져옵니다
getTop()사각형의 위쪽을 가져옵니다
getWidth()크기의 너비를 가져옵니다
getX()크기의 x를 가져옵니다
getY()크기의 y를 가져옵니다
hashCode()
notify()
notifyAll()
setHeight(int value)크기의 높이를 설정합니다
setWidth(int value)크기의 너비를 설정합니다
setX(int value)크기의 x를 설정합니다
setY(int value)크기의 y를 설정합니다
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

Rect(int x, int y, int width, int height)

public Rect(int x, int y, int width, int height)

클래스 Rect의 생성자

Parameters:

매개변수형식설명
xint
yint
너비int
높이int

Rect()

public Rect()

clone()

public Rect clone()

현재 인스턴스를 복제합니다

Returns: Rect

contains(int x, int y)

public boolean contains(int x, int y)

주어진 점이 사각형 안에 있으면 true를 반환합니다.

Parameters:

매개변수형식설명
xint
yint

Returns: boolean

copyFrom(Rect src)

public void copyFrom(Rect src)

Parameters:

매개변수형식설명
srcRect

equals(Object obj)

public boolean equals(Object obj)

Parameters:

매개변수형식설명
objjava.lang.Object

Returns: boolean

getBottom()

public int getBottom()

사각형의 아래쪽을 가져옵니다

Returns: int - 사각형의 아래쪽

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getHeight()

public int getHeight()

크기의 높이를 가져옵니다

Returns: int - 크기의 높이

getLeft()

public int getLeft()

사각형의 왼쪽을 가져옵니다

Returns: int - 사각형의 왼쪽

getRight()

public int getRight()

사각형의 오른쪽을 가져옵니다

Returns: int - 사각형의 오른쪽

getTop()

public int getTop()

사각형의 위쪽을 가져옵니다

Returns: int - 사각형의 위쪽

getWidth()

public int getWidth()

크기의 너비를 가져옵니다

Returns: int - 크기의 너비

getX()

public int getX()

크기의 x를 가져옵니다

Returns: int - 크기의 x

getY()

public int getY()

크기의 y를 가져옵니다

Returns: int - 크기의 y

hashCode()

public int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

setHeight(int value)

public void setHeight(int value)

크기의 높이를 설정합니다

Parameters:

매개변수형식설명
int새 값

setWidth(int value)

public void setWidth(int value)

크기의 너비를 설정합니다

Parameters:

매개변수형식설명
int새 값

setX(int value)

public void setX(int value)

크기의 x를 설정합니다

Parameters:

매개변수형식설명
int새 값

setY(int value)

public void setY(int value)

크기의 y를 설정합니다

Parameters:

매개변수형식설명
int새 값

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final void wait(long arg0)

Parameters:

매개변수형식설명
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

매개변수형식설명
arg0long
arg1int