1 | Each call to the addPoint(...) method adds a vertex to the polygon |
2 | 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) |
3 | There is a corresponding fillPolygon(...) method, of course |