public interface IPathShape
| Modifier and Type | Method and Description |
|---|---|
void |
draw(com.itextpdf.kernel.pdf.canvas.PdfCanvas canvas)
Deprecated.
|
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
|
@Deprecated void draw(com.itextpdf.kernel.pdf.canvas.PdfCanvas canvas)
Deprecated in favour of AbstractPathShape.draw() and later this method should be introduced
in this interface, along with AbstractPathShape.setContext(SvgDrawContext) method. Since
canvas can be got from SvgDrawContext the PdfCanvas parameter is no more needed.
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–2025 Apryse Group NV. All rights reserved.