Package com.itextpdf.svg.renderers.path
Interface IPathShape
-
- All Known Implementing Classes:
AbstractPathShape
,ClosePath
,CurveTo
,EllipticalCurveTo
,HorizontalLineTo
,LineTo
,MoveTo
,QuadraticCurveTo
,QuadraticSmoothCurveTo
,SmoothSCurveTo
,VerticalLineTo
public interface IPathShape
Interface for IPathShape, which draws the Path-data's d element instructions.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
draw(PdfCanvas canvas)
Draws this instruction to a canvas object.Point
getEndingPoint()
Gets the ending point on the canvas after the path shape has been drawn via thedraw(PdfCanvas)
method, in SVG space coordinates.Rectangle
getPathShapeRectangle(Point lastPoint)
Get bounding rectangle of the current path shape.boolean
isRelative()
Returns true when this shape is a relative operator.void
setCoordinates(java.lang.String[] inputCoordinates, Point startPoint)
This method sets the coordinates for the path painting operator and does internal preprocessing, if necessary
-
-
-
Method Detail
-
draw
void draw(PdfCanvas canvas)
Draws this instruction to a canvas object.- Parameters:
canvas
- to which this instruction is drawn
-
setCoordinates
void setCoordinates(java.lang.String[] inputCoordinates, Point startPoint)
This method sets the coordinates for the path painting operator and does internal preprocessing, if necessary- Parameters:
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 operators
-
getEndingPoint
Point getEndingPoint()
Gets the ending point on the canvas after the path shape has been drawn via thedraw(PdfCanvas)
method, in SVG space coordinates.- Returns:
- The
Point
representing the final point in the drawn path. If the point does not exist or does not changenull
may be returned.
-
isRelative
boolean isRelative()
Returns true when this shape is a relative operator. False if it is an absolute operator.- Returns:
- true if relative, false if absolute
-
-