public void strokeLine (double x1, double y1, double x2, double y2)

Strokes a line using the current stroke paint.

This method will be affected by any of the global common or stroke attributes as specified in the Rendering Attributes Table.

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