public class QuadraticCurveTo extends AbstractPathShape implements IControlPointCurve
coordinates, copier, properties, relative
Constructor and Description |
---|
QuadraticCurveTo() |
QuadraticCurveTo(boolean relative) |
QuadraticCurveTo(boolean relative, IOperatorConverter copier) |
Modifier and Type | Method and Description |
---|---|
void |
draw(PdfCanvas canvas)
Draws a quadratic Bezier curve from the current point to (x,y) using (x1,y1) as the control point
|
Point |
getLastControlPoint()
Returns coordinates of the last control point (the one closest to the ending point) in the Bezier curve, in SVG space coordinates
|
void |
setCoordinates(String[] inputCoordinates, Point startPoint)
This method sets the coordinates for the path painting operator and does internal preprocessing, if necessary
|
createPoint, getEndingPoint, isRelative
public QuadraticCurveTo()
public QuadraticCurveTo(boolean relative)
public QuadraticCurveTo(boolean relative, IOperatorConverter copier)
public void draw(PdfCanvas canvas)
draw
in interface IPathShape
canvas
- to which this instruction is drawn
public void setCoordinates(String[] inputCoordinates, Point startPoint)
IPathShape
setCoordinates
in interface IPathShape
inputCoordinates
- 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()
IControlPointCurve
getLastControlPoint
in interface IControlPointCurve
Copyright © 1998–2020 iText Group NV. All rights reserved.