diff options
6 files changed, 94 insertions, 16 deletions
| diff --git a/Week11 Mandelbrot/src/com/camilstaps/mandelbrot/Mandelbrot.java b/Week11 Mandelbrot/src/com/camilstaps/mandelbrot/Mandelbrot.java index 7adb93f..ed47cb7 100644 --- a/Week11 Mandelbrot/src/com/camilstaps/mandelbrot/Mandelbrot.java +++ b/Week11 Mandelbrot/src/com/camilstaps/mandelbrot/Mandelbrot.java @@ -1,3 +1,26 @@ +/*
 + * The MIT License (MIT)
 + * 
 + * Copyright (c) 2015 Camil Staps <info@camilstaps.nl>
 + * 
 + * Permission is hereby granted, free of charge, to any person obtaining a copy
 + * of this software and associated documentation files (the "Software"), to deal
 + * in the Software without restriction, including without limitation the rights
 + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 + * copies of the Software, and to permit persons to whom the Software is
 + * furnished to do so, subject to the following conditions:
 + * 
 + * The above copyright notice and this permission notice shall be included in all
 + * copies or substantial portions of the Software.
 + * 
 + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 + * SOFTWARE.
 + */
  package com.camilstaps.mandelbrot;
  import fractals.MainWindow;
 diff --git a/Week11 Mandelbrot/src/com/camilstaps/mandelbrot/MandelbrotView.java b/Week11 Mandelbrot/src/com/camilstaps/mandelbrot/MandelbrotView.java index fe6a69e..6422e27 100644 --- a/Week11 Mandelbrot/src/com/camilstaps/mandelbrot/MandelbrotView.java +++ b/Week11 Mandelbrot/src/com/camilstaps/mandelbrot/MandelbrotView.java @@ -1,5 +1,25 @@  /* - * Copyright (c) 2015 Camil Staps + * The MIT License (MIT) + *  + * Copyright (c) 2015 Camil Staps <info@camilstaps.nl> + *  + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + *  + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + *  + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE.   */  package com.camilstaps.mandelbrot; diff --git a/Week11 Mandelbrot/src/com/camilstaps/mandelbrot/ZoomFrame.java b/Week11 Mandelbrot/src/com/camilstaps/mandelbrot/ZoomFrame.java index 3c15d5b..25cd2f2 100644 --- a/Week11 Mandelbrot/src/com/camilstaps/mandelbrot/ZoomFrame.java +++ b/Week11 Mandelbrot/src/com/camilstaps/mandelbrot/ZoomFrame.java @@ -1,5 +1,25 @@  /* - * Copyright (c) 2015 Camil Staps + * The MIT License (MIT) + *  + * Copyright (c) 2015 Camil Staps <info@camilstaps.nl> + *  + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + *  + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + *  + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE.   */  package com.camilstaps.mandelbrot; diff --git a/Week11 Mandelbrot/src/fractals/Grid.java b/Week11 Mandelbrot/src/fractals/Grid.java index 7daad63..9cbae76 100644 --- a/Week11 Mandelbrot/src/fractals/Grid.java +++ b/Week11 Mandelbrot/src/fractals/Grid.java @@ -1,13 +1,10 @@  package fractals;
  /**
 - * @author Sjaak Smetsers
 - * @version 1.0, 13-03-2013
 - */
 -
 -/**
   * An interface providing a context for drawing
   * pictures pixel-wise
 + * @author Sjaak Smetsers
 + * @version 1.0, 13-03-2013
   */
  public interface Grid {
      /**
 diff --git a/Week11 Mandelbrot/src/fractals/GridView.java b/Week11 Mandelbrot/src/fractals/GridView.java index d85dc6e..b14659c 100644 --- a/Week11 Mandelbrot/src/fractals/GridView.java +++ b/Week11 Mandelbrot/src/fractals/GridView.java @@ -8,21 +8,16 @@ import java.awt.image.WritableRaster;  import javax.swing.JPanel;
  /**
 - *
 + * An implementation of the Grid interface
   * @author Sjaak Smetsers
   * @version 1.1 --- 14-03-2013
   */
 -/**
 - * An implementation of the Grid interface
 - *
 - * @author Sjaak
 - */
  public class GridView extends JPanel implements Grid {
 -    private BufferedImage gridImage;
 -    private WritableRaster gridRaster;
 +    private final BufferedImage gridImage;
 +    private final WritableRaster gridRaster;
 -    private int gridWidth, gridHeight;
 +    private final int gridWidth, gridHeight;
      private static final int REPAINT_NUMBER = 2000;
 diff --git a/Week11 Mandelbrot/src/fractals/MainWindow.java b/Week11 Mandelbrot/src/fractals/MainWindow.java index 8f89217..bcc6d6f 100644 --- a/Week11 Mandelbrot/src/fractals/MainWindow.java +++ b/Week11 Mandelbrot/src/fractals/MainWindow.java @@ -1,3 +1,26 @@ +/*
 + * The MIT License (MIT)
 + * 
 + * Copyright (c) 2015 Camil Staps <info@camilstaps.nl>
 + * 
 + * Permission is hereby granted, free of charge, to any person obtaining a copy
 + * of this software and associated documentation files (the "Software"), to deal
 + * in the Software without restriction, including without limitation the rights
 + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 + * copies of the Software, and to permit persons to whom the Software is
 + * furnished to do so, subject to the following conditions:
 + * 
 + * The above copyright notice and this permission notice shall be included in all
 + * copies or substantial portions of the Software.
 + * 
 + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 + * SOFTWARE.
 + */
  package fractals;
  import com.camilstaps.mandelbrot.MandelbrotView;
 | 
