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要应用的变换。