Each call to the addPoint(...) method adds a vertex to the polygon |
When the drawPolygon(...) method is called, the last vertex is automatically joined with the first (except in Java 1.0, which has a permanent bug) |
There is a corresponding fillPolygon(...) method, of course |