ObjectWithBounds
Contents
[
Hide
]Inheritance: java.lang.Object
public abstract class ObjectWithBounds
The object having bounds.
Constructors
Constructor | Description |
---|---|
ObjectWithBounds() |
Methods
Method | Description |
---|---|
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:
Parameter | Type | Description |
---|---|---|
matrix | Matrix | The 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:
Parameter | Type | Description |
---|---|---|
matrix | Matrix | The matrix to apply before bounds will be calculated. |
pen | Pen | The 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:
Parameter | Type | Description |
---|---|---|
transform | Matrix | The transformation to apply. |
equals(Object obj)
public boolean equals(Object obj)
Check if objects are equal.
Parameters:
Parameter | Type | Description |
---|---|---|
obj | java.lang.Object | The other object. |
Returns: boolean - The equality comparison result.