CIT CS Workshop: June 2001Drawing Figures in Java Applets or Frames |
Computer Science Department |
| Bounding Box |
Every Java figure has a bounding box
| The x,y coordinates of the top left corner
The height and width of the bounding box
| drawOval (xleft, ytop, width, height)
| |
|---|
| Drawing Arcs |
A Java arc is determined by
| -- the curve of an oval drawn within its bounding box -- its starting angle -- and the angle of the arc | drawArc (xleft, ytop, width, height,
start_angle, arc_angle)
| |
|---|