GeometryPath

Inheritance: java.lang.Object

All Implemented Interfaces: com.aspose.slides.IGeometryPath

public final class GeometryPath implements IGeometryPath

Represents geometry path of GeometryShape

Constructors

ConstructorDescription
GeometryPath()Creates instance of GeometryPath

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(Point2D.Float point)Adds line to the end of the path
lineTo(float x, float y)Adds line to the end of the path
lineTo(Point2D.Float 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(Point2D.Float point1, Point2D.Float point2, Point2D.Float 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(Point2D.Float point1, Point2D.Float point2, Point2D.Float 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(Point2D.Float point1, Point2D.Float 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(Point2D.Float point1, Point2D.Float 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(Point2D.Float 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

GeometryPath()

public GeometryPath()

Creates instance of GeometryPath

getPathData()

public final IPathSegment[] getPathData()

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

Returns: com.aspose.slides.IPathSegment[]

removeAt(int index)

public final 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(Point2D.Float point)

public final void lineTo(Point2D.Float point)

Adds line to the end of the path

Parameters:

ParameterTypeDescription
pointjava.awt.geom.Point2D.FloatEnd point of the line

lineTo(float x, float y)

public final 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(Point2D.Float point, long index)

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

Adds line to the specified place of the path

Parameters:

ParameterTypeDescription
pointjava.awt.geom.Point2D.FloatEnd point
indexlongIndex of segment in PathData

lineTo(float x, float y, long index)

public final 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(Point2D.Float point1, Point2D.Float point2, Point2D.Float point3)

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

Adds cubic Bezier curve at the end the path

Parameters:

ParameterTypeDescription
point1java.awt.geom.Point2D.FloatFirst direction point
point2java.awt.geom.Point2D.FloatSecond direction point
point3java.awt.geom.Point2D.FloatEnd point

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

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

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(Point2D.Float point1, Point2D.Float point2, Point2D.Float point3, long index)

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

Adds cubic Bezier curve to the specified place of the path

Parameters:

ParameterTypeDescription
point1java.awt.geom.Point2D.FloatFirst direction point
point2java.awt.geom.Point2D.FloatSecond direction point
point3java.awt.geom.Point2D.FloatEnd point
indexlongIndex of segment in PathData

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

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

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(Point2D.Float point1, Point2D.Float point2)

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

Adds quadratic Bezier curve at the end the path

Parameters:

ParameterTypeDescription
point1java.awt.geom.Point2D.FloatDirection point
point2java.awt.geom.Point2D.FloatEnd point

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

public final 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(Point2D.Float point1, Point2D.Float point2, long index)

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

Adds quadratic Bezier curve to the specified place of the path

Parameters:

ParameterTypeDescription
point1java.awt.geom.Point2D.FloatDirection point
point2java.awt.geom.Point2D.FloatEnd point
indexlongIndex of segment in PathData

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

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

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 final void closeFigure()

Closes the current figure of this path

moveTo(Point2D.Float point)

public final void moveTo(Point2D.Float point)

Sets next point position.

Parameters:

ParameterTypeDescription
pointjava.awt.geom.Point2D.FloatPoint position

moveTo(float x, float y)

public final 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 final 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 final byte getFillMode()

Sets fill mode

Returns: byte

setFillMode(byte value)

public final void setFillMode(byte value)

Sets fill mode

Parameters:

ParameterTypeDescription
valuebyte

getStroke()

public final boolean getStroke()

Sets stroke appearance

Returns: boolean

setStroke(boolean value)

public final void setStroke(boolean value)

Sets stroke appearance

Parameters:

ParameterTypeDescription
valueboolean