ObjectWithBounds

Inheritance: java.lang.Object

public abstract class ObjectWithBounds

The object having bounds.

Constructors

ConstructorDescription
ObjectWithBounds()

Methods

MethodDescription
getBounds()Gets the object’s bounds.
getBounds(Matrix matrix)Gets the object’s bounds.
getBounds(Matrix matrix, Pen pen)Gets the object’s bounds.
transform(Matrix transform)Applies the specified transformation to the shape.
equals(Object obj)Check if objects are equal.

ObjectWithBounds()

public ObjectWithBounds()

getBounds()

public abstract RectangleF getBounds()

Gets the object’s bounds.

Returns: RectangleF - The object’s bounds.

getBounds(Matrix matrix)

public abstract RectangleF getBounds(Matrix matrix)

Gets the object’s bounds.

Parameters:

ParameterTypeDescription
matrixMatrixThe matrix to apply before bounds will be calculated.

Returns: RectangleF - The estimated object’s bounds.

getBounds(Matrix matrix, Pen pen)

public abstract RectangleF getBounds(Matrix matrix, Pen pen)

Gets the object’s bounds.

Parameters:

ParameterTypeDescription
matrixMatrixThe matrix to apply before bounds will be calculated.
penPenThe pen to use for object. This can influence the object’s bounds size.

Returns: RectangleF - The estimated object’s bounds.

transform(Matrix transform)

public abstract void transform(Matrix transform)

Applies the specified transformation to the shape.

Parameters:

ParameterTypeDescription
transformMatrixThe transformation to apply.

equals(Object obj)

public boolean equals(Object obj)

Check if objects are equal.

Parameters:

ParameterTypeDescription
objjava.lang.ObjectThe other object.

Returns: boolean - The equality comparison result.