A Java Case Study: An Applet for Drawing Polygons
PPT Slide
Features of PolyDraw
List of Source Files
PolyDraw.java (beginning)
PolyDraw.java (major component accessor functions and applet initialization)
PolyDraw.java(static main method for Application mode)
PolyDraw.java(implementation of WindowListener interface)
PDPoint.java(a small class derived from the AWT class Point)
DrawCanvas.java (beginning)
DrawCanvas.java (constructor)
DrawCanvas.java (Mouse handling overview)
DrawCanvas.java (mousePressed -- handling “Poly” mode)
DrawCanvas.java (mousePressed -- handling “Edit” mode)
Concluding Remarks
Email: tanimoto@cs.washington.edu
Home Page: http://www.cs.washington.edu/people/faculty/tanimoto.html