diff options
Diffstat (limited to 'Week15 Mandelbrot/src/mandelbrot/Mandelbrot.java')
-rw-r--r-- | Week15 Mandelbrot/src/mandelbrot/Mandelbrot.java | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/Week15 Mandelbrot/src/mandelbrot/Mandelbrot.java b/Week15 Mandelbrot/src/mandelbrot/Mandelbrot.java new file mode 100644 index 0000000..1980eed --- /dev/null +++ b/Week15 Mandelbrot/src/mandelbrot/Mandelbrot.java @@ -0,0 +1,34 @@ +/*
+ * To change this template, choose Tools | Templates
+ * and open the template in the editor.
+ */
+package mandelbrot;
+
+import java.awt.BorderLayout;
+import java.awt.Insets;
+import javax.swing.JPanel;
+
+
+/*
+This class creates an applet for generating Mandelbrot sets. The applet is
+meant to be embedded in an HTML page and has hooks to interact with the page.
+Functions are provided to allow the user to zoom in and out and to move around
+on the surface of the figure. The user can also select from a set of color
+schemes.
+*/
+
+public class Mandelbrot
+{
+ public static void main(String args[]) {
+
+ GridView grid = new GridView();
+ MainWindow mandel = new MainWindow ( grid );
+
+ Area area = new Area ( -2.5, 2.5, 5, 5 );
+ GridFiller filler = new GridFiller ( grid, area );
+ AreaController controller = new AreaController ( filler, grid );
+ AreaSelector selector = new AreaSelector ( grid, controller );
+ filler.fill();
+ }
+
+}
\ No newline at end of file |