Next:
Rectangle
Up:
Base class structures
Previous:
Oval
Polygon
class Polygon extends DJComponent { dj int n; dj int[n] xs; dj int[n] ys; dj boolean fill; }
The attribute
n
specifies the number of angles in the polygon, and
xs
and
ys
specify the xy-coordinates of these angles.
Neng-Fa Zhou
1999-02-16