public final class GeometryPath extends java.lang.Object implements IGeometryPath
Represents geometry path of GeometryShape
Constructor and Description |
---|
GeometryPath()
Creates instance of GeometryPath
|
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
|
public final IPathSegment[] getPathData()
Returns geometry path of GeometryShape as an array of path segments.
getPathData
in interface IGeometryPath
public final void removeAt(int index)
Removes segment at the specified index of the geometry path.
removeAt
in interface IGeometryPath
index
- Index of the geometry path that should be deleted.public final void lineTo(android.graphics.PointF point)
Adds line to the end of the path
lineTo
in interface IGeometryPath
point
- End point of the linepublic final void lineTo(float x, float y)
Adds line to the end of the path
lineTo
in interface IGeometryPath
x
- X coordinate of the end point of the liney
- Y coordinate of the end point of the linepublic final void lineTo(android.graphics.PointF point, long index)
Adds line to the specified place of the path
lineTo
in interface IGeometryPath
point
- End pointindex
- Index of segment in PathDatacom.aspose.ms.System.ArgumentOutOfRangeException
- Segment index is out of PathData rangepublic final void lineTo(float x, float y, long index)
Adds line to the specified place of the path
lineTo
in interface IGeometryPath
x
- X coordinate of the pointy
- Y coordinate of the pointindex
- Index of segment in PathDatacom.aspose.ms.System.ArgumentOutOfRangeException
- Segment index is out of PathData rangepublic final void cubicBezierTo(android.graphics.PointF point1, android.graphics.PointF point2, android.graphics.PointF point3)
Adds cubic Bezier curve at the end the path
cubicBezierTo
in interface IGeometryPath
point1
- First direction pointpoint2
- Second direction pointpoint3
- End pointpublic final void cubicBezierTo(float x1, float y1, float x2, float y2, float x3, float y3)
Adds cubic Bezier curve at the end the path
cubicBezierTo
in interface IGeometryPath
x1
- X coordinate of first direction pointy1
- Y coordinate of first direction pointx2
- X coordinate of second direction pointy2
- Y coordinate of second direction pointx3
- X coordinate of end pointy3
- Y coordinate of end pointpublic final 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
cubicBezierTo
in interface IGeometryPath
point1
- First direction pointpoint2
- Second direction pointpoint3
- End pointindex
- Index of segment in PathDatacom.aspose.ms.System.ArgumentOutOfRangeException
- Segment index is out of PathData rangepublic 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
cubicBezierTo
in interface IGeometryPath
x1
- X coordinate of first direction pointy1
- Y coordinate of first direction pointx2
- X coordinate of second direction pointy2
- Y coordinate of second direction pointx3
- X coordinate of end pointy3
- Y coordinate of end pointindex
- Index of segment in PathDatacom.aspose.ms.System.ArgumentOutOfRangeException
- Segment index is out of PathData rangepublic final void quadraticBezierTo(android.graphics.PointF point1, android.graphics.PointF point2)
Adds quadratic Bezier curve at the end the path
quadraticBezierTo
in interface IGeometryPath
point1
- Direction pointpoint2
- End pointpublic final void quadraticBezierTo(float x1, float y1, float x2, float y2)
Adds quadratic Bezier curve at the end the path
quadraticBezierTo
in interface IGeometryPath
x1
- X coordinate of direction pointy1
- Y coordinate of direction pointx2
- X coordinate of end pointy2
- Y coordinate of end pointpublic final void quadraticBezierTo(android.graphics.PointF point1, android.graphics.PointF point2, long index)
Adds quadratic Bezier curve to the specified place of the path
quadraticBezierTo
in interface IGeometryPath
point1
- Direction pointpoint2
- End pointindex
- Index of segment in PathDatacom.aspose.ms.System.ArgumentOutOfRangeException
- Segment index is out of PathData rangepublic final void quadraticBezierTo(float x1, float y1, float x2, float y2, long index)
Adds quadratic Bezier curve to the specified place of the path
quadraticBezierTo
in interface IGeometryPath
x1
- X coordinate of direction pointy1
- Y coordinate of direction pointx2
- X coordinate of end pointy2
- Y coordinate of end pointindex
- Index of segment in PathDatacom.aspose.ms.System.ArgumentOutOfRangeException
- Segment index is out of PathData rangepublic final void closeFigure()
Closes the current figure of this path
closeFigure
in interface IGeometryPath
public final void moveTo(android.graphics.PointF point)
Sets next point position.
moveTo
in interface IGeometryPath
point
- Point positionpublic final void moveTo(float x, float y)
Sets next point position.
moveTo
in interface IGeometryPath
x
- X coordinate of the pointy
- Y Coordinate of the pointpublic final void arcTo(float width, float heigth, float startAngle, float sweepAngle)
Appends the specified arc to the path.
arcTo
in interface IGeometryPath
width
- Width of the rectangleheigth
- Height of the rectanglestartAngle
- Start angle.sweepAngle
- Sweep angle/public final byte getFillMode()
Sets fill mode
getFillMode
in interface IGeometryPath
public final void setFillMode(byte value)
Sets fill mode
setFillMode
in interface IGeometryPath
public final boolean getStroke()
Sets stroke appearance
getStroke
in interface IGeometryPath
public final void setStroke(boolean value)
Sets stroke appearance
setStroke
in interface IGeometryPath