Class LineTo
- java.lang.Object
-
- com.itextpdf.svg.renderers.path.impl.AbstractPathShape
-
- com.itextpdf.svg.renderers.path.impl.LineTo
-
- All Implemented Interfaces:
IPathShape
- Direct Known Subclasses:
ClosePath
,HorizontalLineTo
,VerticalLineTo
public class LineTo extends AbstractPathShape
Implements lineTo(L) attribute of SVG's path element
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static int
ARGUMENT_SIZE
-
Fields inherited from class com.itextpdf.svg.renderers.path.impl.AbstractPathShape
coordinates, copier, properties, relative
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
draw(PdfCanvas canvas)
Draws this instruction to a canvas object.void
setCoordinates(java.lang.String[] inputCoordinates, Point startPoint)
This method sets the coordinates for the path painting operator and does internal preprocessing, if necessary-
Methods inherited from class com.itextpdf.svg.renderers.path.impl.AbstractPathShape
createPoint, getEndingPoint, getPathShapeRectangle, isRelative
-
-
-
-
Field Detail
-
ARGUMENT_SIZE
static final int ARGUMENT_SIZE
- See Also:
- Constant Field Values
-
-
Method Detail
-
draw
public void draw(PdfCanvas canvas)
Description copied from interface:IPathShape
Draws this instruction to a canvas object.- Parameters:
canvas
- to which this instruction is drawn
-
setCoordinates
public void setCoordinates(java.lang.String[] inputCoordinates, Point startPoint)
Description copied from interface:IPathShape
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
-
-