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
Implements lineTo(L) attribute of SVG's path element.
-
Field Summary
Fields inherited from class com.itextpdf.svg.renderers.path.impl.AbstractPathShape
context, coordinates, copier, properties, relative -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddraw()Draws this instruction to a canvas object.voidsetCoordinates(String[] inputCoordinates, Point startPoint) This method sets the coordinates for the path painting operator and does internal preprocessing, if necessaryMethods inherited from class com.itextpdf.svg.renderers.path.impl.AbstractPathShape
createPoint, draw, getEndingPoint, getPathShapeRectangle, isRelative, parseHorizontalLength, parseVerticalLength, setContext, setParent, setTransform
-
Constructor Details
-
Method Details
-
draw
public void draw()Description copied from class:AbstractPathShapeDraws this instruction to a canvas object.- Specified by:
-
drawin classAbstractPathShape
-
setCoordinates
Description copied from interface:IPathShapeThis method sets the coordinates for the path painting operator and does internal preprocessing, if necessary- Parameters:
-
inputCoordinates- an array containing point values for path coordinates -
startPoint- the ending point of the previous operator, or, in broader terms, the point that the coordinates should be absolutized against, for relative operators
-