
Applet and Graphics Programming • 385
Java also has method to draw outlined and filled arcs. They are similar to drawOval() and fillOval()
but a starting and ending angle must also be specified for the arc. Angles are given in degree. The signatures
are as follows:
public void drawArc(int left,int top,int width,int height, int
startAngle, int stopAngle)
public void fillArc(int left,int top,int top,int width,int height,
int startAngle, int stopAngle)
The rectangle is filled with an arc of the largest circle that could be enclosed within it. The location of 0
degrees and whether the arc is drawn clockwise or counter-clockwise are ...