Graphics.drawLine
Class Overview | Class Members |
This Package |
All Packages
public abstract void drawLine( int x1,
int y1,
int x2,
int y2 )
Parameters
- x1
- the first point's x coordinate.
- y1
- the first point's y coordinate.
- x2
- the second point's x coordinate.
- y2
- the second point's y coordinate.
Description
Draws a line, using the current color, between the points
(x1, y1) and (x2, y2)
in this graphics context's coordinate system.