com.aspose.imaging.shapes
Class BezierShape

java.lang.Object
  extended by com.aspose.imaging.ObjectWithBounds
      extended by com.aspose.imaging.Shape
          extended by com.aspose.imaging.shapes.PolygonShape
              extended by com.aspose.imaging.shapes.BezierShape
All Implemented Interfaces:
IOrderedShape

public final class BezierShape
extends PolygonShape

Represents a bezier spline.


Constructor Summary
BezierShape()
           Initializes a new instance of the BezierShape class.
BezierShape(PointF[] points)
           Initializes a new instance of the BezierShape class.
BezierShape(PointF[] points, boolean isClosed)
           Initializes a new instance of the BezierShape class.
 
Method Summary
 RectangleF getBounds()
           Gets the object's bounds.
 RectangleF getBounds(Matrix matrix)
           Gets the object's bounds.
 RectangleF getBounds(Matrix matrix, Pen pen)
           Gets the object's bounds.
 PointF getCenter()
           Gets the shape's center.
 PointF getEndPoint()
           Gets the ending shape point.
 ShapeSegment[] getSegments()
           Gets the shape segments.
 boolean hasSegments()
           Gets a value indicating whether shape has segments.
 
Methods inherited from class com.aspose.imaging.shapes.PolygonShape
getPoints, getStartPoint, isClosed, isClosed, reverse, setPoints, transform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BezierShape

public BezierShape()

Initializes a new instance of the BezierShape class.


BezierShape

public BezierShape(PointF[] points)

Initializes a new instance of the BezierShape class.

Parameters:
points - The points array.

BezierShape

public BezierShape(PointF[] points,
                   boolean isClosed)

Initializes a new instance of the BezierShape class.

Parameters:
points - The points array.
isClosed - If set to true the bezier spline is closed.
Method Detail

getBounds

public RectangleF getBounds()

Gets the object's bounds.

Value: The object's bounds.

Overrides:
getBounds in class PolygonShape

getBounds

public RectangleF getBounds(Matrix matrix)

Gets the object's bounds.

Overrides:
getBounds in class PolygonShape
Parameters:
matrix - The matrix to apply before bounds will be calculated.
Returns:
The estimated object's bounds.

getBounds

public RectangleF getBounds(Matrix matrix,
                            Pen pen)

Gets the object's bounds.

Overrides:
getBounds in class PolygonShape
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.

getCenter

public PointF getCenter()

Gets the shape's center.

Value: The shape's center.

Overrides:
getCenter in class PolygonShape

getEndPoint

public PointF getEndPoint()

Gets the ending shape point.

Value: The ending shape point.

Specified by:
getEndPoint in interface IOrderedShape
Overrides:
getEndPoint in class PolygonShape

getSegments

public ShapeSegment[] getSegments()

Gets the shape segments.

Value: The shape segments.

Overrides:
getSegments in class PolygonShape

hasSegments

public boolean hasSegments()

Gets a value indicating whether shape has segments.

Value: True if shape has segments; otherwise, false.

Overrides:
hasSegments in class PolygonShape