Class MandelbrotAlgorithm

java.lang.Object
jadex.micro.mandelbrot.model.AbstractFractalAlgorithm
jadex.micro.mandelbrot.model.MandelbrotAlgorithm
All Implemented Interfaces:
IFractalAlgorithm

public class MandelbrotAlgorithm extends AbstractFractalAlgorithm
Algorithm for calculating the mandelbrot set.
  • Constructor Details

    • MandelbrotAlgorithm

      public MandelbrotAlgorithm()
  • Method Details

    • determineColor

      public short determineColor(double xn, double yn, short max)
      Determine the color of a point.
      Parameters:
      xn - The x coordinate.
      yn - The y coordinate.
      max - The maximum depth.
      x - The x coordinate.
      y - The y coordinate.
      Returns:
      A value for the point from 0 to max.
    • getDefaultSettings

      public AreaData getDefaultSettings()
      Get default settings for rendering the fractal.
    • isDefault

      public boolean isDefault()
      The default algorithm.
      Specified by:
      isDefault in interface IFractalAlgorithm
      Overrides:
      isDefault in class AbstractFractalAlgorithm