IGeometryPath

public interface IGeometryPath

Represents geometry path of GeometryShape

Methods

MethodDescription
getPathData()Returns geometry path of GeometryShape as an array of path segments.
removeAt(int index)Removes segment at the specified index of the geometry path.
lineTo(PointF point)Adds line to the end of the path
lineTo(float x, float y)Adds line to the end of the path
lineTo(PointF point, long index)Adds line to the specified place of the path
lineTo(float x, float y, long index)Adds line to the specified place of the path
cubicBezierTo(PointF point1, PointF point2, PointF point3)Adds cubic Bezier curve at the end the path
cubicBezierTo(float x1, float y1, float x2, float y2, float x3, float y3)Adds cubic Bezier curve at the end the path
cubicBezierTo(PointF point1, PointF point2, PointF point3, long index)Adds cubic Bezier curve to the specified place of the path
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
quadraticBezierTo(PointF point1, PointF point2)Adds quadratic Bezier curve at the end the path
quadraticBezierTo(float x1, float y1, float x2, float y2)Adds quadratic Bezier curve at the end the path
quadraticBezierTo(PointF point1, PointF point2, long index)Adds quadratic Bezier curve to the specified place of the path
quadraticBezierTo(float x1, float y1, float x2, float y2, long index)Adds quadratic Bezier curve to the specified place of the path
closeFigure()Closes the current figure of this path
moveTo(PointF point)Sets next point position.
moveTo(float x, float y)Sets next point position.
arcTo(float width, float heigth, float startAngle, float sweepAngle)Appends the specified arc to the path.
getFillMode()Sets fill mode
setFillMode(byte value)Sets fill mode
getStroke()Sets stroke appearance
setStroke(boolean value)Sets stroke appearance

getPathData()

public abstract IPathSegment[] getPathData()

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

Returns: com.aspose.slides.IPathSegment[]

removeAt(int index)

public abstract void removeAt(int index)

Removes segment at the specified index of the geometry path.

Parameters:

ParameterTypeDescription
indexintIndex of the geometry path that should be deleted.

lineTo(PointF point)

public abstract void lineTo(PointF point)

Adds line to the end of the path

Parameters:

ParameterTypeDescription
pointandroid.graphics.PointFEnd point of the line

lineTo(float x, float y)

public abstract void lineTo(float x, float y)

Adds line to the end of the path

Parameters:

ParameterTypeDescription
xfloatX coordinate of the end point of the line
yfloatY coordinate of the end point of the line

lineTo(PointF point, long index)

public abstract void lineTo(PointF point, long index)

Adds line to the specified place of the path

Parameters:

ParameterTypeDescription
pointandroid.graphics.PointFEnd point
indexlongIndex of segment in PathData

lineTo(float x, float y, long index)

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

Adds line to the specified place of the path

Parameters:

ParameterTypeDescription
xfloatX coordinate of the point
yfloatY coordinate of the point
indexlongIndex of segment in PathData

cubicBezierTo(PointF point1, PointF point2, PointF point3)

public abstract void cubicBezierTo(PointF point1, PointF point2, PointF point3)

Adds cubic Bezier curve at the end the path

Parameters:

ParameterTypeDescription
point1android.graphics.PointFFirst direction point
point2android.graphics.PointFSecond direction point
point3android.graphics.PointFEnd point

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

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

Adds cubic Bezier curve at the end the path

Parameters:

ParameterTypeDescription
x1floatX coordinate of first direction point
y1floatY coordinate of first direction point
x2floatX coordinate of second direction point
y2floatY coordinate of second direction point
x3floatX coordinate of end point
y3floatY coordinate of end point

cubicBezierTo(PointF point1, PointF point2, PointF point3, long index)

public abstract void cubicBezierTo(PointF point1, PointF point2, PointF point3, long index)

Adds cubic Bezier curve to the specified place of the path

Parameters:

ParameterTypeDescription
point1android.graphics.PointFFirst direction point
point2android.graphics.PointFSecond direction point
point3android.graphics.PointFEnd point
indexlongIndex of segment in PathData

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

public abstract 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:

ParameterTypeDescription
x1floatX coordinate of first direction point
y1floatY coordinate of first direction point
x2floatX coordinate of second direction point
y2floatY coordinate of second direction point
x3floatX coordinate of end point
y3floatY coordinate of end point
indexlongIndex of segment in PathData

quadraticBezierTo(PointF point1, PointF point2)

public abstract void quadraticBezierTo(PointF point1, PointF point2)

Adds quadratic Bezier curve at the end the path

Parameters:

ParameterTypeDescription
point1android.graphics.PointFDirection point
point2android.graphics.PointFEnd point

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

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

Adds quadratic Bezier curve at the end the path

Parameters:

ParameterTypeDescription
x1floatX coordinate of direction point
y1floatY coordinate of direction point
x2floatX coordinate of end point
y2floatY coordinate of end point

quadraticBezierTo(PointF point1, PointF point2, long index)

public abstract void quadraticBezierTo(PointF point1, PointF point2, long index)

Adds quadratic Bezier curve to the specified place of the path

Parameters:

ParameterTypeDescription
point1android.graphics.PointFDirection point
point2android.graphics.PointFEnd point
indexlongIndex of segment in PathData

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

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

Adds quadratic Bezier curve to the specified place of the path

Parameters:

ParameterTypeDescription
x1floatX coordinate of direction point
y1floatY coordinate of direction point
x2floatX coordinate of end point
y2floatY coordinate of end point
indexlongIndex of segment in PathData

closeFigure()

public abstract void closeFigure()

Closes the current figure of this path

moveTo(PointF point)

public abstract void moveTo(PointF point)

Sets next point position.

Parameters:

ParameterTypeDescription
pointandroid.graphics.PointFPoint position

moveTo(float x, float y)

public abstract void moveTo(float x, float y)

Sets next point position.

Parameters:

ParameterTypeDescription
xfloatX coordinate of the point
yfloatY Coordinate of the point

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

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

Appends the specified arc to the path.

Parameters:

ParameterTypeDescription
widthfloatWidth of the rectangle
heigthfloatHeight of the rectangle
startAnglefloatStart angle.
sweepAnglefloatSweep angle/

getFillMode()

public abstract byte getFillMode()

Sets fill mode

Returns: byte

setFillMode(byte value)

public abstract void setFillMode(byte value)

Sets fill mode

Parameters:

ParameterTypeDescription
valuebyte

getStroke()

public abstract boolean getStroke()

Sets stroke appearance

Returns: boolean

setStroke(boolean value)

public abstract void setStroke(boolean value)

Sets stroke appearance

Parameters:

ParameterTypeDescription
valueboolean