public class CurveTo extends AbstractPathShape implements IControlPointCurve
context, coordinates, copier, properties, relative| Constructor and Description |
|---|
CurveTo()
Creates new
CurveTo instance. |
CurveTo(boolean relative)
Creates new
CurveTo instance. |
CurveTo(boolean relative,
IOperatorConverter copier)
Creates new
CurveTo instance. |
| Modifier and Type | Method and Description |
|---|---|
void |
draw()
Draws this instruction to a canvas object.
|
com.itextpdf.kernel.geom.Point |
getLastControlPoint()
Returns coordinates of the last control point (the one closest to the ending point)
in the Bezier curve, in SVG space coordinates
|
com.itextpdf.kernel.geom.Rectangle |
getPathShapeRectangle(com.itextpdf.kernel.geom.Point lastPoint)
Get bounding rectangle of the current path shape.
|
void |
setCoordinates(String[] inputCoordinates,
com.itextpdf.kernel.geom.Point startPoint)
This method sets the coordinates for the path painting operator and does internal
preprocessing, if necessary
|
createPoint, draw, getEndingPoint, isRelative, parseHorizontalLength, parseVerticalLength, setContext, setParent, setTransformpublic CurveTo()
CurveTo instance.public CurveTo(boolean relative)
CurveTo instance.relative - true in case it is a relative operator, false if it is an absolute operatorpublic CurveTo(boolean relative,
IOperatorConverter copier)
CurveTo instance.relative - true in case it is a relative operator, false if it is an absolute operatorcopier - IOperatorConverter copier for converting relative coordinates to absolute coordinatespublic void draw()
AbstractPathShapedraw in class AbstractPathShapepublic void setCoordinates(String[] inputCoordinates, com.itextpdf.kernel.geom.Point startPoint)
IPathShapesetCoordinates in interface IPathShapeinputCoordinates - an array containing point values for path coordinatesstartPoint - the ending point of the previous operator, or, in broader terms,
the point that the coordinates should be absolutized against, for relative operatorspublic com.itextpdf.kernel.geom.Point getLastControlPoint()
IControlPointCurvegetLastControlPoint in interface IControlPointCurvepublic com.itextpdf.kernel.geom.Rectangle getPathShapeRectangle(com.itextpdf.kernel.geom.Point lastPoint)
AbstractPathShapegetPathShapeRectangle in interface IPathShapegetPathShapeRectangle in class AbstractPathShapelastPoint - start point for this shapeCopyright © 1998–2025 Apryse Group NV. All rights reserved.