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
|
Rectangle |
getPathShapeRectangle(Point lastPoint)
Get bounding rectangle of the current path shape.
|
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
public Rectangle getPathShapeRectangle(Point lastPoint)
AbstractPathShape
getPathShapeRectangle
in class AbstractPathShape
lastPoint
- start point for this shape
Copyright © 1998–2020 iText Group NV. All rights reserved.