Basic HTML version of Foils prepared 13 July 98

Foil 42 HexagonTest Applet

From Java Academy II:Advanced Java NPAC/ECS Java Academy -- February to April 98. by Tom Scavo

The HexagonTest Applet
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

in Table To:


© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Sat Nov 28 1998