com.aspose.slides

Interfaces

Classes

Exceptions

com.aspose.slides

Class GeometryPath

  • java.lang.Object
    • com.aspose.slides.GeometryPath
  • All Implemented Interfaces:
    IGeometryPath


    public final class GeometryPath
    extends java.lang.Object
    implements IGeometryPath

    Represents geometry path of GeometryShape

    • Constructor Summary

      Constructors 
      Constructor and Description
      GeometryPath()
      Creates instance of GeometryPath
    • Method Summary

      All Methods Instance Methods Concrete 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(java.awt.geom.Point2D.Float point1, java.awt.geom.Point2D.Float point2, java.awt.geom.Point2D.Float point3)
      Adds cubic Bezier curve at the end the path
      void cubicBezierTo(java.awt.geom.Point2D.Float point1, java.awt.geom.Point2D.Float point2, java.awt.geom.Point2D.Float 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(java.awt.geom.Point2D.Float point)
      Adds line to the end of the path
      void lineTo(java.awt.geom.Point2D.Float point, long index)
      Adds line to the specified place of the path
      void moveTo(float x, float y)
      Sets next point position.
      void moveTo(java.awt.geom.Point2D.Float 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(java.awt.geom.Point2D.Float point1, java.awt.geom.Point2D.Float point2)
      Adds quadratic Bezier curve at the end the path
      void quadraticBezierTo(java.awt.geom.Point2D.Float point1, java.awt.geom.Point2D.Float 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
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GeometryPath

        public GeometryPath()

        Creates instance of GeometryPath

    • Method Detail

      • getPathData

        public final IPathSegment[] getPathData()

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

        Specified by:
        getPathData in interface IGeometryPath
      • removeAt

        public final void removeAt(int index)

        Removes segment at the specified index of the geometry path.

        Specified by:
        removeAt in interface IGeometryPath
        Parameters:
        index - Index of the geometry path that should be deleted.
      • lineTo

        public final void lineTo(java.awt.geom.Point2D.Float point)

        Adds line to the end of the path

        Specified by:
        lineTo in interface IGeometryPath
        Parameters:
        point - End point of the line
      • lineTo

        public final void lineTo(float x,
                                 float y)

        Adds line to the end of the path

        Specified by:
        lineTo in interface IGeometryPath
        Parameters:
        x - X coordinate of the end point of the line
        y - Y coordinate of the end point of the line
      • lineTo

        public final void lineTo(java.awt.geom.Point2D.Float point,
                                 long index)

        Adds line to the specified place of the path

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

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

        Adds line to the specified place of the path

        Specified by:
        lineTo in interface IGeometryPath
        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

        public final void cubicBezierTo(java.awt.geom.Point2D.Float point1,
                                        java.awt.geom.Point2D.Float point2,
                                        java.awt.geom.Point2D.Float point3)

        Adds cubic Bezier curve at the end the path

        Specified by:
        cubicBezierTo in interface IGeometryPath
        Parameters:
        point1 - First direction point
        point2 - Second direction point
        point3 - End point
      • cubicBezierTo

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

        Adds cubic Bezier curve at the end the path

        Specified by:
        cubicBezierTo in interface IGeometryPath
        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

        public final void cubicBezierTo(java.awt.geom.Point2D.Float point1,
                                        java.awt.geom.Point2D.Float point2,
                                        java.awt.geom.Point2D.Float point3,
                                        long index)

        Adds cubic Bezier curve to the specified place of the path

        Specified by:
        cubicBezierTo in interface IGeometryPath
        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

        public final 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

        Specified by:
        cubicBezierTo in interface IGeometryPath
        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

        public final void quadraticBezierTo(java.awt.geom.Point2D.Float point1,
                                            java.awt.geom.Point2D.Float point2)

        Adds quadratic Bezier curve at the end the path

        Specified by:
        quadraticBezierTo in interface IGeometryPath
        Parameters:
        point1 - Direction point
        point2 - End point
      • quadraticBezierTo

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

        Adds quadratic Bezier curve at the end the path

        Specified by:
        quadraticBezierTo in interface IGeometryPath
        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

        public final void quadraticBezierTo(java.awt.geom.Point2D.Float point1,
                                            java.awt.geom.Point2D.Float point2,
                                            long index)

        Adds quadratic Bezier curve to the specified place of the path

        Specified by:
        quadraticBezierTo in interface IGeometryPath
        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

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

        Adds quadratic Bezier curve to the specified place of the path

        Specified by:
        quadraticBezierTo in interface IGeometryPath
        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

        public final void closeFigure()

        Closes the current figure of this path

        Specified by:
        closeFigure in interface IGeometryPath
      • moveTo

        public final void moveTo(java.awt.geom.Point2D.Float point)

        Sets next point position.

        Specified by:
        moveTo in interface IGeometryPath
        Parameters:
        point - Point position
      • moveTo

        public final void moveTo(float x,
                                 float y)

        Sets next point position.

        Specified by:
        moveTo in interface IGeometryPath
        Parameters:
        x - X coordinate of the point
        y - Y Coordinate of the point
      • arcTo

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

        Appends the specified arc to the path.

        Specified by:
        arcTo in interface IGeometryPath
        Parameters:
        width - Width of the rectangle
        heigth - Height of the rectangle
        startAngle - Start angle.
        sweepAngle - Sweep angle/
      • setFillMode

        public final void setFillMode(byte value)

        Sets fill mode

        Specified by:
        setFillMode in interface IGeometryPath
      • getStroke

        public final boolean getStroke()

        Sets stroke appearance

        Specified by:
        getStroke in interface IGeometryPath
      • setStroke

        public final void setStroke(boolean value)

        Sets stroke appearance

        Specified by:
        setStroke in interface IGeometryPath