CurveTo Class Documentation
classCurveTo : SegmentNamespace:com::datalogics::PDFL
- Inherits from:
Segment
Detailed Description
The curveto operator is used to draw a Bezier curve. The curved segment is appended to a path.
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.
Uses types
Constructor & Destructor Documentation
CurveTo
CurveTo(doublex1, doubley1, doublex2, doubley2, doublex3, doubley3)Parameters
x1: doubleThe x-coordinate of the first control point.
y1: doubleThe y-coordinate of the first control point.
x2: doubleThe x-coordinate of the second control point.
y2: doubleThe y-coordinate of the second control point.
x3: doubleThe x-coordinate of the new current point.
y3: doubleThe y-coordinate of the new current point.
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
Parameters
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.
Member Function Documentation
DisposeChildren
voidDisposeChildren()Returns:
void[static initializer]
static void[static initializer]()delete
synchronized voiddelete(Booleandisposing)Parameters
disposing: Boolean
Returns:
synchronized voiddelete
synchronized voiddelete()Returns:
synchronized voidfinalize
voidfinalize()Returns:
voidgetPoint1
PointgetPoint1()Returns:
PointThe first control point.
getPoint2
PointgetPoint2()Returns:
PointThe second control point.
getPoint3
PointgetPoint3()Returns:
PointThe new current point.
setPoint1
voidsetPoint1(Pointvalue)Parameters
value: Point
Returns:
voidThe first control point.
setPoint2
voidsetPoint2(Pointvalue)Parameters
value: Point
Returns:
voidThe second control point.
setPoint3
voidsetPoint3(Pointvalue)Parameters
value: Point
Returns:
voidThe new current point.
toString
StringtoString()Returns:
String