djfractal
Class APFractalComputer

java.lang.Object
  extended bydjfractal.AbstractFractalComputer
      extended bydjfractal.APFractalComputer
All Implemented Interfaces:
FractalComputer, java.io.Serializable

public class APFractalComputer
extends AbstractFractalComputer

Arbitrary Precision implementation of the FractalComputer interface.

See Also:
FractalComputer, Serialized Form

Field Summary
 
Fields inherited from class djfractal.AbstractFractalComputer
bounds, colors, scale, verbose
 
Constructor Summary
APFractalComputer()
           
 
Method Summary
 void _init(int iterations, java.math.BigDecimal bailout)
           
protected  int calculate(java.math.BigDecimal cr, java.math.BigDecimal ci)
           
static void main(java.lang.String[] args)
           
protected  void subRegion(int startX, int startY, int subRegionWidth, int subRegionHeight, int offsetX, int offsetY, int width, int height, FractalResult fr)
          Compute a subRegion of a fractal data.
 
Methods inherited from class djfractal.AbstractFractalComputer
calculateAll, discrepancy, init, insert, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

APFractalComputer

public APFractalComputer()
Method Detail

_init

public void _init(int iterations,
                  java.math.BigDecimal bailout)
Specified by:
_init in class AbstractFractalComputer

subRegion

protected void subRegion(int startX,
                         int startY,
                         int subRegionWidth,
                         int subRegionHeight,
                         int offsetX,
                         int offsetY,
                         int width,
                         int height,
                         FractalResult fr)
Description copied from class: AbstractFractalComputer

Compute a subRegion of a fractal data.

This method is invoked by AbstractFractalComputer.calculateAll(FractalData fd) to prevent the computation of precomputed corners.

Specified by:
subRegion in class AbstractFractalComputer
Parameters:
startX - the X value of the point this subregion begins
startY - the Y value of the point this subregion begins
subRegionWidth - the width of the subregion
subRegionHeight - the height of the subregion
offsetX - the X offset in the fr.values array
offsetY - the Y offset in the fr.values array
width - the width of the fractal data the specified subregion belongs to
height - the height of the fractal data the specified subregion belongs to
fr - the FractalResult object to fill

calculate

protected final int calculate(java.math.BigDecimal cr,
                              java.math.BigDecimal ci)
Specified by:
calculate in class AbstractFractalComputer

main

public static void main(java.lang.String[] args)


DJFractal help mailing list