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, setSweepAngle
getBounds, getCenter, getLeftBottom, getLeftTop, getRectangleHeight, getRectangleWidth, getRightBottom, getRightTop, hasSegments, transform
public 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 PieShape
public PointF getStartPoint()
Gets the starting shape point.
Value: The starting shape point.getStartPoint
in interface IOrderedShape
public PointF getEndPoint()
Gets the ending shape point.
Value: The ending shape point.getEndPoint
in interface IOrderedShape
public 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 IOrderedShape
true
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 IOrderedShape
value
- true
if this ordered shape is closed; otherwise, false
.public void reverse()
Reverses the order of points for this shape.
reverse
in interface IOrderedShape
public RectangleF getBounds(Matrix matrix)
Gets the object's bounds.
getBounds
in class RectangleProjectedShape
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 RectangleProjectedShape
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.