com.aspose.imaging
Class ObjectWithBounds

java.lang.Object
  extended by com.aspose.imaging.ObjectWithBounds
Direct Known Subclasses:
Figure, GraphicsPath, Shape

public abstract class ObjectWithBounds
extends java.lang.Object

The object having bounds.


Constructor Summary
ObjectWithBounds()
           
 
Method Summary
abstract  RectangleF getBounds()
           Gets the object's bounds.
abstract  RectangleF getBounds(Matrix matrix)
           Gets the object's bounds.
abstract  RectangleF getBounds(Matrix matrix, Pen pen)
           Gets the object's bounds.
abstract  void transform(Matrix transform)
           Applies the specified transformation to the shape.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectWithBounds

public ObjectWithBounds()
Method Detail

getBounds

public abstract RectangleF getBounds()

Gets the object's bounds.

Value: The object's bounds.


getBounds

public abstract RectangleF getBounds(Matrix matrix)

Gets the object's bounds.

Parameters:
matrix - The matrix to apply before bounds will be calculated.
Returns:
The estimated object's bounds.

getBounds

public abstract RectangleF getBounds(Matrix matrix,
                                     Pen pen)

Gets the object's bounds.

Parameters:
matrix - The matrix to apply before bounds will be calculated.
pen - The pen to use for object. This can influence the object's bounds size.
Returns:
The estimated object's bounds.

transform

public abstract void transform(Matrix transform)

Applies the specified transformation to the shape.

Parameters:
transform - The transformation to apply.