Java Class Source

Graph2D.java
The main plotting canvas. This class controls the look and feel of the graph.
G2Dint.java
An extension of the Graph2D class with event handling and graphics input.
DataSet.java
The class that contains the data.
VectorSet.java
An extension of the DataSet class to allow vector fields to be plotted.
LoadData.java
This class will use a seperate thread to load data into a data set from a a passed URL.
Axis.java
The class that calculates and draws the axis
TextLine.java
A class to format text on a line. It combines the Font, Color, and FontMetrics with the String.
RTextLine.java
An extension to the TextLine class that allows text to be rotated. The rotation is only in increments of 90°. (This is only for clarity of text. The ImageFilter used to rotate the text could be extended for arbitrary rotation.)
Markers.java
A class to either create or load from a URL stroked markers that can be placed at data points
ScanWord.java
An extension to the StreamTokenizer class to allow KeyWords to be recognised in the stream and returned as tokens.
BuildGraph.java
An extension to the ScanWord class that can parse an input stream and construct an entire plot based on the commands in the stream. This class allows plots to be constructed from simple scripts.
Contour.java
An extension to the G2Dint class that can plot and label contours. The actual contour curves are calculated by the IsoCurve class.
ScanString.java
A class to allow a string to be tokenized into numbers and predefined keywords.
ParseFunction.java
An extension to the ScanString class that will parse a function definition of at most 3 independent variables and return the result as a double.
SpecialFunction.java
An extension of the java.lang.Math class that defines some special function (such as Hyperbolic functions, Bessel functions) and defines some physical constants (such as Gravitation constant, mass of proton, Stefan-Boltzman constant etc.)

Java Applet Source

example1
An applet that plots data it has calculated
example1a
An applet that repeats example1 but plots two graphs side by side.
example2
An example of using Threads and the Graphing Class library to produce a StripChart.
example2a
An example of using Threads, double buffering and the Graphing Class library to produce a flicker free StripChart.
example3
An example of plotting data loaded from a URL and allowing the user to rescale the plot.
example4
An example of using the TextLine class.
example5
An example of using the BuildGraph class. Using this precompiled applet a user can incorporate any plot into a web document
example6
An example of using the Contour class.
example7
An example of using the ParseFunction class to plot a 1D function.
example8
An example of using the ParseFunction classK to contour a 2D function..

Other files

example5.data
Here is the input file that is used to build the plot in Example 5.
example5a.data
Here is the input file that is used to build the plot in Example 5a.
example5b.data
Here is the input file that is used to build the plot in Example 5b.
elliptical.data
Here is the data file that is plotted in Example 2 and Example 5.
marker.txt
The default marker description file.
parser.java
A stand alone java program that uses the ParseFunction class to parse the command line. Used to debug the ParseFunction and SpecialFunction class. Can Also be used to return values of function strings.

Leigh Brookshaw
Last modified: Tue Sep 24 09:46:55 EST 1996