Class MandelTest

java.lang.Object
  |
  +--MandelTest

public class MandelTest
extends java.lang.Object

This class calculates the mandelbrot set for a given "window" and maps the search depth to a color value which is then set as a pixel into the image. The internally used frame is fix-sized to 512x512.

Author:
Nicolas Noffke, Olaf Engel

Constructor Summary
MandelTest(int x, int width, int y, int height)
          The constructor.
 
Method Summary
 PixelImage getImage()
          Get the resulting image.
 int[] getResult()
          Get the resulting image as an integer array.
 void runTest()
          Run the test for the assigned "window".
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MandelTest

public MandelTest(int x,
                  int width,
                  int y,
                  int height)
The constructor.
Parameters:
x - the horizontal starting coordinate.
width - the horizontal width.
y - the vertical starting coordinate.
heigth - the vertical height.
Method Detail

runTest

public void runTest()
Run the test for the assigned "window".

getResult

public int[] getResult()
Get the resulting image as an integer array.
Returns:
an integer array containing pixels.

getImage

public PixelImage getImage()
Get the resulting image.
Returns:
the resulting image.