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:

参数类型描述
matrixMatrix在计算边界之前要应用的矩阵。

Returns: RectangleF - The estimated object’s bounds.

getBounds(Matrix matrix, Pen pen)

public abstract RectangleF getBounds(Matrix matrix, Pen pen)

获取对象的边界。

Parameters:

参数类型描述
matrixMatrix在计算边界之前要应用的矩阵。
penPen用于对象的笔。它可能影响对象的边界尺寸。

Returns: RectangleF - The estimated object’s bounds.

transform(Matrix transform)

public abstract void transform(Matrix transform)

对形状应用指定的变换。

Parameters:

参数类型描述
transformMatrix要应用的转换。