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






Draws a rectangle specified by a coordinate pair, a width, and a height.

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

 Syntax

Java  Copy Code

public void drawRectangle (
    Pen pen,
    int x,
    int y,
    int width,
    int height
)

 Parameters

pen

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

x

The x-coordinate of the upper-left corner of the rectangle to draw.

y

The y-coordinate of the upper-left corner of the rectangle to draw.

width

The width of the rectangle to draw.

height

The height of the rectangle to draw.

 See Also

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