public final class CurveShape extends PolygonShape
Represents a curved spline shape.
| Constructor and Description |
|---|
CurveShape()
Initializes a new instance of the
CurveShape class. |
CurveShape(PointF[] points)
Initializes a new instance of the
CurveShape class. |
CurveShape(PointF[] points,
boolean isClosed)
Initializes a new instance of the
CurveShape class. |
CurveShape(PointF[] points,
float tension)
Initializes a new instance of the
CurveShape class. |
CurveShape(PointF[] points,
float tension,
boolean isClosed)
Initializes a new instance of the
CurveShape 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.
|
ShapeSegment[] |
getSegments()
Gets the shape segments.
|
float |
getTension()
Gets or sets the curve tension.
|
void |
setTension(float value)
Gets or sets the curve tension.
|
getEndPoint, getPoints, getStartPoint, hasSegments, isClosed, reverse, setClosed, setPoints, transformpublic CurveShape()
Initializes a new instance of the CurveShape class.
public CurveShape(PointF[] points)
Initializes a new instance of the CurveShape class. The default tension of 0.5 is used.
points - The points array.public CurveShape(PointF[] points, boolean isClosed)
Initializes a new instance of the CurveShape class. The default tension of 0.5 is used.
points - The points array.public CurveShape(PointF[] points, float tension)
Initializes a new instance of the CurveShape class.
points - The points array.tension - The curve tension.public CurveShape(PointF[] points, float tension, boolean isClosed)
Initializes a new instance of the CurveShape class.
points - The points array.tension - The curve tension.isClosed - if set to true the curve is closed.public float getTension()
Gets or sets the curve tension.
Value: The curve tension.public void setTension(float value)
Gets or sets the curve tension.
Value: The curve tension.public RectangleF getBounds()
Gets the object's bounds.
Value: The object's bounds.getBounds in class PolygonShapepublic PointF getCenter()
Gets the shape's center.
Value: The shape's center.getCenter in class PolygonShapepublic ShapeSegment[] getSegments()
Gets the shape segments.
Value: The shape segments.getSegments in class PolygonShapepublic RectangleF getBounds(Matrix matrix)
Gets the object's bounds.
getBounds in class PolygonShapematrix - The matrix to apply before bounds will be calculated.public RectangleF getBounds(Matrix matrix, Pen pen)
Gets the object's bounds.
getBounds in class PolygonShapematrix - The matrix to apply before bounds will be calculated.pen - The pen to use for object. This can influence the object's bounds size.Copyright (c) 2008-2022 Aspose Pty Ltd. All Rights Reserved.