public class CurveTo extends AbstractPathShape implements IControlPointCurve
coordinates, copier, properties, relative
Constructor and Description |
---|
CurveTo() |
CurveTo(boolean relative) |
CurveTo(boolean relative, IOperatorConverter copier) |
Modifier and Type | Method and Description |
---|---|
void |
draw(PdfCanvas canvas)
Draws this instruction to a canvas object.
|
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 CurveTo()
public CurveTo(boolean relative)
public CurveTo(boolean relative, IOperatorConverter copier)
public void draw(PdfCanvas canvas)
IPathShape
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–2023 iText Group NV. All rights reserved.