public class CurveTo extends Segment
The curveto operator calculates the curve between two endpoints, the current (beginning) point and the final (end) point, and in relation to two matching control points.
The control points define the nature of the curve between the two endpoints. These values are represented by a series of x and y coordinates.
| Constructor and Description |
|---|
CurveTo(double x1,
double y1,
double x2,
double y2,
double x3,
double y3)
Append a cubic Bézier curve to the current path. The curve extends from the current point to the point (x3, y3), using (x1, y1) and (x2, y2) as the Bézier control points. The new current point is (x3 , y3).
|
CurveTo(Point point1,
Point point2,
Point point3)
Append a cubic Bézier curve to the current path. The curve extends from the current point to point3, using point1 and point2 as the Bézier control points. The new current point is point3.
|
| Modifier and Type | Method and Description |
|---|---|
void |
delete() |
Point |
getPoint1()
The first control point.
|
Point |
getPoint2()
The second control point.
|
Point |
getPoint3()
The new current point.
|
void |
setPoint1(Point value)
The first control point.
|
void |
setPoint2(Point value)
The second control point.
|
void |
setPoint3(Point value)
The new current point.
|
java.lang.String |
toString() |
public CurveTo(Point point1, Point point2, Point point3)
point1 - the first control point.point2 - the second control point.point3 - the new current point.public CurveTo(double x1,
double y1,
double x2,
double y2,
double x3,
double y3)
x1 - The x-coordinate of the first control point.y1 - The y-coordinate of the first control point.x2 - The x-coordinate of the second control point.y2 - The y-coordinate of the second control point.x3 - The x-coordinate of the new current point.y3 - The y-coordinate of the new current point.public void setPoint1(Point value)
public Point getPoint1()
public void setPoint2(Point value)
public Point getPoint2()
public void setPoint3(Point value)
public Point getPoint3()