1 | One of our test applets uses a new method of the superclass DrawablePolygon: for ( int i = 0; i < n; i++ ) { hexagon.centerRotate( theta ).draw( g ); } |
2 | Method centerRotate(...) rotates the polygon about its center of gravity, whereas rotate(...) rotates the polygon about the top left-hand corner of its bounding box |