com.aspose.slides

Interfaces

Classes

Exceptions

com.aspose.slides

Interface IGeometryPath

  • All Known Implementing Classes:
    GeometryPath


    public interface IGeometryPath

    Represents geometry path of GeometryShape

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      void arcTo(float width, float heigth, float startAngle, float sweepAngle)
      Appends the specified arc to the path.
      void closeFigure()
      Closes the current figure of this path
      void cubicBezierTo(float x1, float y1, float x2, float y2, float x3, float y3)
      Adds cubic Bezier curve at the end the path
      void cubicBezierTo(float x1, float y1, float x2, float y2, float x3, float y3, long index)
      Adds cubic Bezier curve to the specified place of the path
      void cubicBezierTo(android.graphics.PointF point1, android.graphics.PointF point2, android.graphics.PointF point3)
      Adds cubic Bezier curve at the end the path
      void cubicBezierTo(android.graphics.PointF point1, android.graphics.PointF point2, android.graphics.PointF point3, long index)
      Adds cubic Bezier curve to the specified place of the path
      byte getFillMode()
      Sets fill mode
      IPathSegment[] getPathData()
      Returns geometry path of GeometryShape as an array of path segments.
      boolean getStroke()
      Sets stroke appearance
      void lineTo(float x, float y)
      Adds line to the end of the path
      void lineTo(float x, float y, long index)
      Adds line to the specified place of the path
      void lineTo(android.graphics.PointF point)
      Adds line to the end of the path
      void lineTo(android.graphics.PointF point, long index)
      Adds line to the specified place of the path
      void moveTo(float x, float y)
      Sets next point position.
      void moveTo(android.graphics.PointF point)
      Sets next point position.
      void quadraticBezierTo(float x1, float y1, float x2, float y2)
      Adds quadratic Bezier curve at the end the path
      void quadraticBezierTo(float x1, float y1, float x2, float y2, long index)
      Adds quadratic Bezier curve to the specified place of the path
      void quadraticBezierTo(android.graphics.PointF point1, android.graphics.PointF point2)
      Adds quadratic Bezier curve at the end the path
      void quadraticBezierTo(android.graphics.PointF point1, android.graphics.PointF point2, long index)
      Adds quadratic Bezier curve to the specified place of the path
      void removeAt(int index)
      Removes segment at the specified index of the geometry path.
      void setFillMode(byte value)
      Sets fill mode
      void setStroke(boolean value)
      Sets stroke appearance
    • Method Detail

      • getPathData

        IPathSegment[] getPathData()

        Returns geometry path of GeometryShape as an array of path segments.

      • removeAt

        void removeAt(int index)

        Removes segment at the specified index of the geometry path.

        Parameters:
        index - Index of the geometry path that should be deleted.
      • lineTo

        void lineTo(android.graphics.PointF point)

        Adds line to the end of the path

        Parameters:
        point - End point of the line
      • lineTo

        void lineTo(float x,
                    float y)

        Adds line to the end of the path

        Parameters:
        x - X coordinate of the end point of the line
        y - Y coordinate of the end point of the line
      • lineTo

        void lineTo(android.graphics.PointF point,
                    long index)

        Adds line to the specified place of the path

        Parameters:
        point - End point
        index - Index of segment in PathData
        Throws:
        com.aspose.ms.System.ArgumentOutOfRangeException - Segment index is out of PathData range
      • lineTo

        void lineTo(float x,
                    float y,
                    long index)

        Adds line to the specified place of the path

        Parameters:
        x - X coordinate of the point
        y - Y coordinate of the point
        index - Index of segment in PathData
        Throws:
        com.aspose.ms.System.ArgumentOutOfRangeException - Segment index is out of PathData range
      • cubicBezierTo

        void cubicBezierTo(android.graphics.PointF point1,
                           android.graphics.PointF point2,
                           android.graphics.PointF point3)

        Adds cubic Bezier curve at the end the path

        Parameters:
        point1 - First direction point
        point2 - Second direction point
        point3 - End point
      • cubicBezierTo

        void cubicBezierTo(float x1,
                           float y1,
                           float x2,
                           float y2,
                           float x3,
                           float y3)

        Adds cubic Bezier curve at the end the path

        Parameters:
        x1 - X coordinate of first direction point
        y1 - Y coordinate of first direction point
        x2 - X coordinate of second direction point
        y2 - Y coordinate of second direction point
        x3 - X coordinate of end point
        y3 - Y coordinate of end point
      • cubicBezierTo

        void cubicBezierTo(android.graphics.PointF point1,
                           android.graphics.PointF point2,
                           android.graphics.PointF point3,
                           long index)

        Adds cubic Bezier curve to the specified place of the path

        Parameters:
        point1 - First direction point
        point2 - Second direction point
        point3 - End point
        index - Index of segment in PathData
        Throws:
        com.aspose.ms.System.ArgumentOutOfRangeException - Segment index is out of PathData range
      • cubicBezierTo

        void cubicBezierTo(float x1,
                           float y1,
                           float x2,
                           float y2,
                           float x3,
                           float y3,
                           long index)

        Adds cubic Bezier curve to the specified place of the path

        Parameters:
        x1 - X coordinate of first direction point
        y1 - Y coordinate of first direction point
        x2 - X coordinate of second direction point
        y2 - Y coordinate of second direction point
        x3 - X coordinate of end point
        y3 - Y coordinate of end point
        index - Index of segment in PathData
        Throws:
        com.aspose.ms.System.ArgumentOutOfRangeException - Segment index is out of PathData range
      • quadraticBezierTo

        void quadraticBezierTo(android.graphics.PointF point1,
                               android.graphics.PointF point2)

        Adds quadratic Bezier curve at the end the path

        Parameters:
        point1 - Direction point
        point2 - End point
      • quadraticBezierTo

        void quadraticBezierTo(float x1,
                               float y1,
                               float x2,
                               float y2)

        Adds quadratic Bezier curve at the end the path

        Parameters:
        x1 - X coordinate of direction point
        y1 - Y coordinate of direction point
        x2 - X coordinate of end point
        y2 - Y coordinate of end point
      • quadraticBezierTo

        void quadraticBezierTo(android.graphics.PointF point1,
                               android.graphics.PointF point2,
                               long index)

        Adds quadratic Bezier curve to the specified place of the path

        Parameters:
        point1 - Direction point
        point2 - End point
        index - Index of segment in PathData
        Throws:
        com.aspose.ms.System.ArgumentOutOfRangeException - Segment index is out of PathData range
      • quadraticBezierTo

        void quadraticBezierTo(float x1,
                               float y1,
                               float x2,
                               float y2,
                               long index)

        Adds quadratic Bezier curve to the specified place of the path

        Parameters:
        x1 - X coordinate of direction point
        y1 - Y coordinate of direction point
        x2 - X coordinate of end point
        y2 - Y coordinate of end point
        index - Index of segment in PathData
        Throws:
        com.aspose.ms.System.ArgumentOutOfRangeException - Segment index is out of PathData range
      • closeFigure

        void closeFigure()

        Closes the current figure of this path

      • moveTo

        void moveTo(android.graphics.PointF point)

        Sets next point position.

        Parameters:
        point - Point position
      • moveTo

        void moveTo(float x,
                    float y)

        Sets next point position.

        Parameters:
        x - X coordinate of the point
        y - Y Coordinate of the point
      • arcTo

        void arcTo(float width,
                   float heigth,
                   float startAngle,
                   float sweepAngle)

        Appends the specified arc to the path.

        Parameters:
        width - Width of the rectangle
        heigth - Height of the rectangle
        startAngle - Start angle.
        sweepAngle - Sweep angle/
      • getFillMode

        byte getFillMode()

        Sets fill mode

      • setFillMode

        void setFillMode(byte value)

        Sets fill mode

      • getStroke

        boolean getStroke()

        Sets stroke appearance

      • setStroke

        void setStroke(boolean value)

        Sets stroke appearance