public interface IPathShape
| Modifier and Type | Method and Description |
|---|---|
void |
draw(com.itextpdf.kernel.pdf.canvas.PdfCanvas canvas)
Draws this instruction to a canvas object.
|
com.itextpdf.kernel.geom.Point |
getEndingPoint()
Gets the ending point on the canvas after the path shape has been drawn
via the
draw(PdfCanvas) method, in SVG space coordinates. |
com.itextpdf.kernel.geom.Rectangle |
getPathShapeRectangle(com.itextpdf.kernel.geom.Point lastPoint)
Get bounding rectangle of the current path shape.
|
boolean |
isRelative()
Returns true when this shape is a relative operator.
|
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
|
void draw(com.itextpdf.kernel.pdf.canvas.PdfCanvas canvas)
canvas - to which this instruction is drawnvoid setCoordinates(String[] inputCoordinates, com.itextpdf.kernel.geom.Point startPoint)
inputCoordinates - 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 operatorscom.itextpdf.kernel.geom.Point getEndingPoint()
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.boolean isRelative()
com.itextpdf.kernel.geom.Rectangle getPathShapeRectangle(com.itextpdf.kernel.geom.Point lastPoint)
lastPoint - start point for this shapeCopyright © 1998–2023 iText Group NV. All rights reserved.