Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.arranger.jarl.test.frac
Class FractalCalculator  view FractalCalculator download FractalCalculator.java

java.lang.Object
  extended bycom.arranger.jarl.test.frac.FractalCalculator
Direct Known Subclasses:
MandelbrotCalculator

public abstract class FractalCalculator
extends java.lang.Object


Field Summary
private  java.awt.Color[] colorMap
           
private  int[][] colorNumbers
           
private  double delta
           
private  com.arranger.jarl.test.FracTest fractal
           
private  java.awt.Image image
           
private  int imageHeight
           
private  int imageWidth
           
private  double iRangeMax
           
private  double iRangeMin
           
private  int maxIterations
           
private  Drawing newDrawing
           
private  ComplexRectangle newRect
           
private  int numColors
           
private  double rRangeMax
           
private  double rRangeMin
           
private  boolean stopRequested
           
 
Constructor Summary
protected FractalCalculator(com.arranger.jarl.test.FracTest fractal, Drawing newDrawing)
           
 
Method Summary
private  boolean calcFractal()
           
protected  java.awt.Color getColor(int x, int y)
           
protected  int[][] getColorNumbers()
           
 void run()
           
protected abstract  int testPoint(double r, double i, int maxIterations)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

colorMap

private java.awt.Color[] colorMap

colorNumbers

private int[][] colorNumbers

delta

private double delta

fractal

private com.arranger.jarl.test.FracTest fractal

image

private java.awt.Image image

iRangeMax

private double iRangeMax

iRangeMin

private double iRangeMin

maxIterations

private int maxIterations

newDrawing

private Drawing newDrawing

newRect

private ComplexRectangle newRect

numColors

private int numColors

imageHeight

private int imageHeight

imageWidth

private int imageWidth

rRangeMax

private double rRangeMax

rRangeMin

private double rRangeMin

stopRequested

private boolean stopRequested
Constructor Detail

FractalCalculator

protected FractalCalculator(com.arranger.jarl.test.FracTest fractal,
                            Drawing newDrawing)
Method Detail

calcFractal

private boolean calcFractal()
                     throws java.lang.Throwable

getColor

protected java.awt.Color getColor(int x,
                                  int y)

getColorNumbers

protected int[][] getColorNumbers()

run

public void run()
         throws java.lang.Throwable

testPoint

protected abstract int testPoint(double r,
                                 double i,
                                 int maxIterations)