public final class BezierShape extends PolygonShape
Represents a bezier spline.
Constructor and Description |
---|
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. |
Modifier and Type | Method and Description |
---|---|
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.
|
getPoints, getStartPoint, isClosed, reverse, setClosed, setPoints, transform
public BezierShape()
Initializes a new instance of the BezierShape
class.
public BezierShape(PointF[] points)
Initializes a new instance of the BezierShape
class.
points
- The points array.public BezierShape(PointF[] points, boolean isClosed)
Initializes a new instance of the BezierShape
class.
points
- The points array.isClosed
- If set to true
the bezier spline is closed.public RectangleF getBounds()
Gets the object's bounds.
Value: The object's bounds.getBounds
in class PolygonShape
public PointF getCenter()
Gets the shape's center.
Value: The shape's center.getCenter
in class PolygonShape
public ShapeSegment[] getSegments()
Gets the shape segments.
Value: The shape segments.getSegments
in class PolygonShape
public boolean hasSegments()
Gets a value indicating whether shape has segments.
Value:True
if shape has segments; otherwise, false
.hasSegments
in class PolygonShape
True
if shape has segments; otherwise, false
.public PointF getEndPoint()
Gets the ending shape point.
Value: The ending shape point.getEndPoint
in interface IOrderedShape
getEndPoint
in class PolygonShape
public RectangleF getBounds(Matrix matrix)
Gets the object's bounds.
getBounds
in class PolygonShape
matrix
- The matrix to apply before bounds will be calculated.public RectangleF getBounds(Matrix matrix, Pen pen)
Gets the object's bounds.
getBounds
in class PolygonShape
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.