public interface IPath
Modifier and Type | Interface and Description |
---|---|
static class |
IPath.OperationType
Lists the path operation types.
|
Modifier and Type | Method and Description |
---|---|
void |
arcTo(float rx,
float ry,
float phi,
boolean fA,
boolean fS,
float x,
float y)
Draws an elliptical arc from the current point to (x, y).
|
void |
closePath()
Close the current subpath by drawing a straight line from the current point
to current subpath's initial point.
|
void |
curveTo(float x1,
float y1,
float x2,
float y2,
float x,
float y)
Draws a cubic Bezier curve from the current point to (x,y) using (x1,y1) as
the control point at the beginning of the curve and (x2,y2) as the control
point at the end of the curve.
|
void |
lineTo(float x,
float y)
Draws a line from the current point to the given (x,y) coordinate which
becomes the new current point.
|
void |
moveTo(float x,
float y)
Starts a new subpath at the given (x,y) coordinate.
|
void |
quadTo(float x1,
float y1,
float x,
float y)
Draws a quadratic Bezier curve from the current point to (x,y) using
(x1,y1) as the control point.
|
java.util.EnumSet<IPath.OperationType> |
unsupportedOperations()
Lists the operations not supported by the implementation of IPath.
|
java.util.EnumSet<IPath.OperationType> unsupportedOperations()
void moveTo(float x, float y)
x
- the x coordinate to move to.y
- the y coordinate to move to.void lineTo(float x, float y)
x
- the x coordinate to draw a line to.y
- the y coordinate to draw a line to.void curveTo(float x1, float y1, float x2, float y2, float x, float y)
x1
- the x coordinate of the control point at the beginning of the curve.y1
- the y coordinate of the control point at the beginning of the curve.x2
- the x coordinate of the control point at the end of the curve.y2
- the y coordinate of the control point at the end of the curve.x
- the x coordinate of the final point of the curve.y
- the y coordinate of the final point of the curve.void quadTo(float x1, float y1, float x, float y)
x1
- the x coordinate of the control point.y1
- the y coordinate of the control point.x
- the x coordinate of the final point of the curve.y
- the y coordinate of the final point of the curve.void arcTo(float rx, float ry, float phi, boolean fA, boolean fS, float x, float y)
rx
- the x-axis radius (must be positive).ry
- the y-axis radius (must be positive).phi
- the x-axis rotation angle.fA
- the large-arc flag.fS
- the sweep-arc flag.x
- the x coordinate of the last point.y
- the y coordinate of the last point.void closePath()