JPlanner Programmer's Guide
Graphics.drawLine Method (Pen, Int32, Int32, Int32, Int32)
See Also
 






Draws a line connecting the points defined by the specified coordinates.

Namespace: com.mindfusion.drawing
Package: com.mindfusion.drawing

 Syntax

Java  Copy Code

public void drawLine (
    Pen pen,
    int x1,
    int y1,
    int x2,
    int y2
)

 Parameters

pen

A Pen object that determines the color, width, and style of the line.

x1

The x-coordinate of the first point to connect.

y1

The y-coordinate of the first point to connect.

x2

The x-coordinate of the second point to connect.

y2

The y-coordinate of the second point to connect.

 See Also

drawLine Method Overload List
Graphics Members
Graphics Interface
com.mindfusion.drawing Namespace