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