Graphics.drawEllipse

Overview | Methods | This Package | All Packages

Graphics.drawEllipse

Draws an ellipse in the specified bounding rectangle.

Syntax

public final void drawEllipse( Rectangle rect )

public final void drawEllipse( int x, int y, int width, int height )

public final void drawEllipse( Rectangle rect, RasterOp op )

public final void drawEllipse( int x, int y, int width, int height, RasterOp op )

Parameters

rect

A Rectangle object that specifies the rectangle in which to draw the ellipse.

x

The x-coordinate of the rectangle in which to draw the ellipse.

y

The y-coordinate of the rectangle in which to draw the ellipse.

width

The width of the rectangle in which to draw the ellipse.

height

The height of the rectangle in which to draw the ellipse.

op

A RasterOp object that describes how to draw the ellipse.

Remarks

The ellipse is drawn using the current pen and filled using the current brush.