MovablePolygon Methods
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