Code for the Famous Curves Applet


The Famous Curves interactive associated curve plotter in java is based on Pascal routines by J J O'Connor written for Mathematical MacTutor and adapted by Ben Soares for the Famous Curves section of the MacTutor History of Mathematics Archive on the WWW at http://www-history.mcs.st-andrews.ac.uk/
Please do not modify this code without the authors' permission.
The authors' email addresses are:
Ben Soares: bs@st-and.ac.uk
John O'Connor: joc@st-and.ac.uk
Constructive comments are always welcome.
No responsibility for this code or its use will be taken by the authors.

If you would like to see the scripts that have been written to make the java bytecode used for the Famous Curves Applet you can click on the links below to see each class.

FamousCurves
contains the definition of the curve object. It is entirely dependent upon the name string given it to define the curve points. The methods used to define the associated curve points are part of this class.
Curve
contains the panel used to draw the curve and its associated curves in. This also detects the mouse movements on the curve.
CurvePanel
contains the panel at the bottom of the applet making use of a cardlayout in a gridbaglayout. It also detects the mouseclicks on the PointButtons as I could find no easy way of making them do that themselves (if you know how to let me know).
CurveControls
contains the definition of the PointButtons which are little more than a triangular appearing canvas.
TextPanel
contains the scrollbarless panel which has the text (instructions/definitions) displayed within.
PointButton
contains the overall applet which takes param values from the html and creates the curve and places it in the curvepanel which in turn is placed in the curvecontrols.

Welcome page Famous curves index

BS July 1996