From Java Academy II:Advanced Java NPAC/ECS Java Academy -- February to April 98. byTom Scavo
Our ParallelogramTest applet is simple: parallelogram1 = new Parallelogram( x, y, side1, side2, alpha ); parallelogram2 = parallelogram1.rotate( theta ); ... public void paint( Graphics g ) { parallelogram1.fill( g ); parallelogram2.fill( g ); }