Class Mandelbrot

java.lang.Object
  |
  +--Mandelbrot

public class Mandelbrot
extends java.lang.Object


Constructor Summary
Mandelbrot(Complex min, Complex max, int windowSize, int maxIters)
          Constructor for a Mandelbrot set
 
Method Summary
 void maxFactor(double f)
           
 void zoomin()
          Implement zoomin by calling zoomto
 void zoomout()
          Implement zoomout by calling zoomto
 void zoomto(canvas.Rect bounds)
          Zoom so that the provided square now fills the display.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Mandelbrot

public Mandelbrot(Complex min,
                  Complex max,
                  int windowSize,
                  int maxIters)
Constructor for a Mandelbrot set
Parameters:
min - The initial complex coordinate of the lower-left corner
max - The initial complex coordinate of the upper-right corner
windowSize - The width and height of the window in pixels
maxIters - The maximum number of iterations for computing any point
Method Detail

zoomin

public void zoomin()
Implement zoomin by calling zoomto
See Also:
zoomto(Rect r)

zoomout

public void zoomout()
Implement zoomout by calling zoomto
See Also:
zoomto(Rect r)

zoomto

public void zoomto(canvas.Rect bounds)
Zoom so that the provided square now fills the display.
Parameters:
bounds - The square whose contents should now fill the display

maxFactor

public void maxFactor(double f)
Parameters:
f - The factor by which the maximum iterations per point is changed