ObjectWithBounds
内容
[
隐藏
]Inheritance: java.lang.Object
public abstract class ObjectWithBounds
具有边界的对象。
构造函数
| 构造函数 | 描述 |
|---|---|
| ObjectWithBounds() |
方法
| 方法 | 描述 |
|---|---|
| getBounds() | 获取对象的边界。 |
| getBounds(Matrix matrix) | 获取对象的边界。 |
| getBounds(Matrix matrix, Pen pen) | 获取对象的边界。 |
| transform(Matrix transform) | 对形状应用指定的变换。 |
ObjectWithBounds()
public ObjectWithBounds()
getBounds()
public abstract RectangleF getBounds()
获取对象的边界。
Returns: RectangleF - The object’s bounds.
getBounds(Matrix matrix)
public abstract RectangleF getBounds(Matrix matrix)
获取对象的边界。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| matrix | Matrix | 在计算边界之前要应用的矩阵。 |
Returns: RectangleF - The estimated object’s bounds.
getBounds(Matrix matrix, Pen pen)
public abstract RectangleF getBounds(Matrix matrix, Pen pen)
获取对象的边界。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| matrix | Matrix | 在计算边界之前要应用的矩阵。 |
| pen | Pen | 用于对象的笔。它可能影响对象的边界尺寸。 |
Returns: RectangleF - The estimated object’s bounds.
transform(Matrix transform)
public abstract void transform(Matrix transform)
对形状应用指定的变换。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| transform | Matrix | 要应用的转换。 |