com.aspose.imaging.shapes
Class PieShape

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
Direct Known Subclasses:
ArcShape

public class PieShape
extends EllipseShape

Represents a pie shape.


Constructor Summary
PieShape()
           Initializes a new instance of the PieShape class.
PieShape(RectangleF rectangle, float startAngle, float sweepAngle)
           Initializes a new instance of the PieShape class.
 
Method Summary
 ShapeSegment[] getSegments()
           Gets the shape segments.
 float getStartAngle()
           Gets the start angle.
 float getSweepAngle()
           Gets the sweep angle.
 void setStartAngle(float value)
           Sets the start angle.
 void setSweepAngle(float value)
           Sets the sweep angle.
 
Methods inherited from class com.aspose.imaging.shapes.RectangleProjectedShape
getBounds, getBounds, 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

PieShape

public PieShape()

Initializes a new instance of the PieShape class.


PieShape

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

Initializes a new instance of the PieShape class.

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

getSegments

public ShapeSegment[] getSegments()

Gets the shape segments.

Value: The shape segments.

Overrides:
getSegments in class EllipseShape

getStartAngle

public float getStartAngle()

Gets the start angle.

Value: The start angle.


getSweepAngle

public float getSweepAngle()

Gets the sweep angle.

Value: The sweep angle.


setStartAngle

public void setStartAngle(float value)

Sets the start angle.

Value: The start angle.


setSweepAngle

public void setSweepAngle(float value)

Sets the sweep angle.

Value: The sweep angle.