From f92dcfbbce3d2057e39314312deed941c22881f5 Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Tue, 2 Jun 2015 09:41:17 +0200 Subject: Start week15 --- Week15 Mandelbrot/src/mandelbrot/Mandelbrot.java | 34 ++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 Week15 Mandelbrot/src/mandelbrot/Mandelbrot.java (limited to 'Week15 Mandelbrot/src/mandelbrot/Mandelbrot.java') 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 -- cgit v1.2.3