blob: 163dca9b2ceec743844159680e7cc5149ec0811d (
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
35
36
37
38
39
|
/*
* Copyright (c) 2015 Camil Staps
*/
package com.camilstaps.mandelbrot;
import javax.swing.JButton;
import javax.swing.JTextField;
/**
*
* @author camilstaps
*/
public class MandelbrotWindow {
private final DrawView drawView;
private final String INITIAL_CENTER_X = "0",
INITIAL_CENTER_Y = "0",
INITIAL_SCALE = "100",
INITIAL_REPETITIONS = "100";
private final JTextField field_centerX = new JTextField(INITIAL_CENTER_X, 6);
private final JTextField field_centerY = new JTextField(INITIAL_CENTER_Y, 6);
private final JTextField field_scale = new JTextField(INITIAL_SCALE, 6);
private final JTextField field_repetitions = new JTextField(INITIAL_REPETITIONS, 6);
private final JButton button_redraw = new JButton("Redraw");
private MandelbrotWindow() {
FractalModel fm = new FractalModel();
drawView = new DrawView(fm);
ZoomFrame frame = new ZoomFrame("Mandelbrot", drawView);
}
public static void main(String[] args) {
MandelbrotWindow mw = new MandelbrotWindow();
}
}
|