Graphics.fillArc

Graphics.fillArc

Class Overview | Class Members | This Package | All Packages

Syntax
public abstract void fillArc( int x, int y, int width, int height, int startAngle, int arcAngle )
Parameters
x
the x coordinate of the upper-left corner of the arc to be filled.
y
the y coordinate of the upper-left corner of the arc to be filled.
width
the width of the arc to be filled.
height
the height of the arc to be filled.
startAngle
the beginning angle.
arcAngle
the angular extent of the arc, relative to the start angle.
Description
Fills a circular or elliptical arc covering the specified rectangle.

The resulting arc begins at startAngle and extends for arcAngle degrees. Angles are interpreted such that 0 degrees is at the 3 o'clock position. A positive value indicates a counter-clockwise rotation while a negative value indicates a clockwise rotation.

The center of the arc is the center of the rectangle whose origin is (xy) and whose size is specified by the width and height arguments.

The resulting arc covers an area width + 1 pixels wide by height + 1 pixels tall.

See Also
drawArc