public class CurveTo extends AbstractPathShape
properties, relative
Modifier and Type | Method and Description |
---|---|
void |
draw(PdfCanvas canvas)
Draws this instruction to a canvas object.
|
Point |
getEndingPoint()
Gets the ending point on the canvas after the path shape has been drawn via the IPathShape.draw(PdfCanvas) method, in SVG space coordinates.
|
Point |
getLastControlPoint()
Returns coordinates of the last control point (the one closer to the ending point) in the series of Bezier curves (possibly, one curve), in SVG space coordinates
|
void |
setCoordinates(String[] coordinates, Point startPoint)
This method sets the coordinates for the path painting operator and does internal preprocessing, if necessary
|
createPoint, isRelative
public void draw(PdfCanvas canvas)
IPathShape
canvas
- to which this instruction is drawn
public void setCoordinates(String[] coordinates, Point startPoint)
IPathShape
coordinates
- an array containing point values for path coordinates
startPoint
- the ending point of the previous operator, or, in broader terms, the point that the coordinates should be absolutized against, for relative operators
public Point getLastControlPoint()
public Point getEndingPoint()
IPathShape
IPathShape.draw(PdfCanvas)
method, in SVG space coordinates.
Point
representing the final point in the drawn path. If the point does not exist or does not change null
may be returned.
Copyright © 1998–2019 iText Group NV. All rights reserved.