public void lineTo (double x1, double y1)

Adds segments to the current path to make a line to the given x,y coordinate. The coordinates are transformed by the current transform as they are added to the path and unaffected by subsequent changes to the transform. The current path is a path attribute used for any of the path methods as specified in the Rendering Attributes Table and is not affected by the save() and restore() operations.

Parameters:
x1    the X coordinate of the ending point of the line.
y1    the Y coordinate of the ending point of the line.