public final class ArcShape extends PieShape implements IOrderedShape
Represents an arc shape.
| Constructor and Description |
|---|
ArcShape()
Initializes a new instance of the
ArcShape class. |
ArcShape(RectangleF rectangle,
float startAngle,
float sweepAngle)
Initializes a new instance of the
ArcShape class. |
ArcShape(RectangleF rectangle,
float startAngle,
float sweepAngle,
boolean isClosed)
Initializes a new instance of the
ArcShape class. |
| Modifier and Type | Method and Description |
|---|---|
RectangleF |
getBounds(Matrix matrix)
Gets the object's bounds.
|
RectangleF |
getBounds(Matrix matrix,
Pen pen)
Gets the object's bounds.
|
PointF |
getEndPoint()
Gets the ending shape point.
|
ShapeSegment[] |
getSegments()
Gets the shape segments.
|
PointF |
getStartPoint()
Gets the starting shape point.
|
boolean |
isClosed()
Gets or sets a value indicating whether ordered shape is closed.
|
void |
reverse()
Reverses the order of points for this shape.
|
void |
setClosed(boolean value)
Gets or sets a value indicating whether ordered shape is closed.
|
getStartAngle, getSweepAngle, setStartAngle, setSweepAnglegetBounds, getCenter, getLeftBottom, getLeftTop, getRectangleHeight, getRectangleWidth, getRightBottom, getRightTop, hasSegments, transformpublic ArcShape()
Initializes a new instance of the ArcShape class.
public ArcShape(RectangleF rectangle, float startAngle, float sweepAngle)
Initializes a new instance of the ArcShape class.
rectangle - The rectangle.startAngle - The start angle.sweepAngle - The sweep angle.public ArcShape(RectangleF rectangle, float startAngle, float sweepAngle, boolean isClosed)
Initializes a new instance of the ArcShape class.
rectangle - The rectangle.startAngle - The start angle.sweepAngle - The sweep angle.isClosed - If set to true the arc is closed. The closed arc is actually degenereates to an ellipse.public ShapeSegment[] getSegments()
Gets the shape segments.
Value: The shape segments.getSegments in class PieShapepublic PointF getStartPoint()
Gets the starting shape point.
Value: The starting shape point.getStartPoint in interface IOrderedShapepublic PointF getEndPoint()
Gets the ending shape point.
Value: The ending shape point.getEndPoint in interface IOrderedShapepublic boolean isClosed()
Gets or sets a value indicating whether ordered shape is closed. When processing closed ordered shape the starting and ending points have no meaning.
Value:True if this ordered shape is closed; otherwise, false.isClosed in interface IOrderedShapetrue if this ordered shape is closed; otherwise, false.public void setClosed(boolean value)
Gets or sets a value indicating whether ordered shape is closed. When processing closed ordered shape the starting and ending points have no meaning.
Value:True if this ordered shape is closed; otherwise, false.setClosed in interface IOrderedShapevalue - true if this ordered shape is closed; otherwise, false.public void reverse()
Reverses the order of points for this shape.
reverse in interface IOrderedShapepublic RectangleF getBounds(Matrix matrix)
Gets the object's bounds.
getBounds in class RectangleProjectedShapematrix - The matrix to apply before bounds will be calculated.public RectangleF getBounds(Matrix matrix, Pen pen)
Gets the object's bounds.
getBounds in class RectangleProjectedShapematrix - 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-2020 Aspose Pty Ltd. All Rights Reserved.