Packages

 

com.aspose.imaging.shapes

Class CurveShape

  • All Implemented Interfaces:
    IOrderedShape


    public final class CurveShape
    extends PolygonShape

    Represents a curved spline shape.

    • Constructor Detail

      • CurveShape

        public CurveShape()

        Initializes a new instance of the CurveShape class.

      • CurveShape

        public CurveShape(PointF[] points)

        Initializes a new instance of the CurveShape class. The default tension of 0.5 is used.

        Parameters:
        points - The points array.
      • CurveShape

        public CurveShape(PointF[] points,
                          boolean isClosed)

        Initializes a new instance of the CurveShape class. The default tension of 0.5 is used.

        Parameters:
        points - The points array.
      • CurveShape

        public CurveShape(PointF[] points,
                          float tension)

        Initializes a new instance of the CurveShape class.

        Parameters:
        points - The points array.
        tension - The curve tension.
      • CurveShape

        public CurveShape(PointF[] points,
                          float tension,
                          boolean isClosed)

        Initializes a new instance of the CurveShape class.

        Parameters:
        points - The points array.
        tension - The curve tension.
        isClosed - if set to true the curve is closed.
    • Method Detail

      • getTension

        public float getTension()

        Gets or sets the curve tension.

        Value: The curve tension.
      • setTension

        public void setTension(float value)

        Gets or sets the curve tension.

        Value: The curve tension.
      • getBounds

        public RectangleF getBounds()

        Gets the object's bounds.

        Value: The object's bounds.
        Overrides:
        getBounds in class PolygonShape
        Returns:
        The object's bounds.
      • getCenter

        public PointF getCenter()

        Gets the shape's center.

        Value: The shape's center.
        Overrides:
        getCenter in class PolygonShape
        Returns:
        The shape's center.
      • getSegments

        public ShapeSegment[] getSegments()

        Gets the shape segments.

        Value: The shape segments.
        Overrides:
        getSegments in class PolygonShape
        Returns:
        The shape segments.
      • getBounds

        public RectangleF getBounds(Matrix matrix)

        Gets the object's bounds.

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