com.aspose.imaging.shapes
Class ArcShape

java.lang.Object
  extended by com.aspose.imaging.ObjectWithBounds
      extended by com.aspose.imaging.Shape
          extended by com.aspose.imaging.shapes.RectangleProjectedShape
              extended by com.aspose.imaging.shapes.RectangleShape
                  extended by com.aspose.imaging.shapes.EllipseShape
                      extended by com.aspose.imaging.shapes.PieShape
                          extended by com.aspose.imaging.shapes.ArcShape
All Implemented Interfaces:
IOrderedShape

public final class ArcShape
extends PieShape
implements IOrderedShape

Represents an arc shape.


Constructor Summary
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.
 
Method Summary
 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 a value indicating whether ordered shape is closed.
 void isClosed(boolean value)
           Sets a value indicating whether ordered shape is closed.
 void reverse()
           Reverses the order of points for this shape.
 
Methods inherited from class com.aspose.imaging.shapes.PieShape
getStartAngle, getSweepAngle, setStartAngle, setSweepAngle
 
Methods inherited from class com.aspose.imaging.shapes.RectangleProjectedShape
getBounds, getCenter, getLeftBottom, getLeftTop, getRectangleHeight, getRectangleWidth, getRightBottom, getRightTop, hasSegments, transform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArcShape

public ArcShape()

Initializes a new instance of the ArcShape class.


ArcShape

public ArcShape(RectangleF rectangle,
                float startAngle,
                float sweepAngle)

Initializes a new instance of the ArcShape class.

Parameters:
rectangle - The rectangle.
startAngle - The start angle.
sweepAngle - The sweep angle.

ArcShape

public ArcShape(RectangleF rectangle,
                float startAngle,
                float sweepAngle,
                boolean isClosed)

Initializes a new instance of the ArcShape class.

Parameters:
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.
Method Detail

getBounds

public RectangleF getBounds(Matrix matrix)

Gets the object's bounds.

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

getEndPoint

public PointF getEndPoint()

Gets the ending shape point.

Value: The ending shape point.

Specified by:
getEndPoint in interface IOrderedShape

getSegments

public ShapeSegment[] getSegments()

Gets the shape segments.

Value: The shape segments.

Overrides:
getSegments in class PieShape

getStartPoint

public PointF getStartPoint()

Gets the starting shape point.

Value: The starting shape point.

Specified by:
getStartPoint in interface IOrderedShape

isClosed

public boolean isClosed()

Gets 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.

Specified by:
isClosed in interface IOrderedShape

isClosed

public void isClosed(boolean value)

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.

Specified by:
isClosed in interface IOrderedShape

reverse

public void reverse()

Reverses the order of points for this shape.

Specified by:
reverse in interface IOrderedShape