Basic HTML version of Foils prepared 13 July 98

Foil 79 MovablePolygon Methods

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


The first two methods are trivial: public void setDelta( int dx, int dy ) { this.dx = dx; this.dy = dy; } public void move() { this.translate( dx, dy ); }
The checkBounds(...) method is exactly the same as in the previous sample program



© 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