Packages

 

com.aspose.psd.shapes

Class ArcShape

    • 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

      • getSegments

        public ShapeSegment[] getSegments()

        Gets the shape segments.

        Value: The shape segments.
        Overrides:
        getSegments in class PieShape
        Returns:
        The shape segments.
      • getStartPoint

        public PointF getStartPoint()

        Gets the starting shape point.

        Value: The starting shape point.
        Specified by:
        getStartPoint in interface IOrderedShape
        Returns:
        The starting shape point.
      • getEndPoint

        public PointF getEndPoint()

        Gets the ending shape point.

        Value: The ending shape point.
        Specified by:
        getEndPoint in interface IOrderedShape
        Returns:
        The ending shape point.
      • isClosed

        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.
        Specified by:
        isClosed in interface IOrderedShape
        Returns:
        true if this ordered shape is closed; otherwise, false.
      • setClosed

        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.
        Specified by:
        setClosed in interface IOrderedShape
        Parameters:
        value - true if this ordered shape is closed; otherwise, false.
      • reverse

        public void reverse()

        Reverses the order of points for this shape.

        Specified by:
        reverse in interface IOrderedShape
      • 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.