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
  • Constructor Details

    • LineTo

      public LineTo()
    • LineTo

      public LineTo (boolean relative)
  • Method Details

    • 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 (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 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