Share via


Overview | Methods | This Package | All Packages

OverviewMethodsThis PackageAll Packages

Graphics.drawPie

Draws a pie-shaped wedge bounded by the intersection of an ellipse and two radials.

Syntax

public final void drawPie( Rectangle rect**, Point** start**, Point** end )

public final void drawPie( Rectangle rect**, Point** start**, Point** end**, RasterOp** op )

public final void drawPie( int x**, int** y**, int** width**, int** height**, int** startX**, int** startY**, int** endX**, int** endY )

public final void drawPie( int x**, int** y**, int** width**, int** height**, int** startX**, int** startY**, int** endX**, int** endY**, RasterOp** op )

Parameters

rect

A Rectangle object that specifies the bounding rectangle for 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.

start

A Point object that specifies the starting point for the pie.

end

A Point object that specifies the ending point for the pie.

startX

The x-coordinate at which to start drawing the pie.

startY

The y-coordinate at which to start drawing the pie.

endX

The x-coordinate at which the pie ends.

endY

The y-coordinate at which the pie ends.

op

A RasterOp object that describes how to render the pie.

Remarks

The pie is outlined using the current pen and is filled using the current brush. The curve of the pie is defined by an ellipse that fits the specified bounding rectangle. The curve begins at the point where the ellipse intersects the first radial and extends counterclockwise to the point at which the ellipse intersects the second radial. (A radial is a line drawn from the center of the ellipse to the specified endpoint on the ellipse.)