aboutsummaryrefslogtreecommitdiff
path: root/Week15 Mandelbrot/src/mandelbrot/Mandelbrot.java
blob: 1980eed530e3472f794502d6ea8cf6c5cc4240b9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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();
    }

}