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:
| 参数 | 类型 | 描述 |
|---|---|---|
| x | int | |
| y | int | |
| 宽度 | 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:
| 参数 | 类型 | 描述 |
|---|---|---|
| x | int | |
| y | int |
Returns: 布尔
copyFrom(Rect src)
public void copyFrom(Rect src)
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| src | Rect |
equals(Object obj)
public boolean equals(Object obj)
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| obj | java.lang.Object |
Returns: 布尔
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:
| 参数 | 类型 | 描述 |
|---|---|---|
| arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| arg0 | long | |
| arg1 | int |