Package jadex.micro.mandelbrot.model
Class MandelbrotAlgorithm
java.lang.Object
jadex.micro.mandelbrot.model.AbstractFractalAlgorithm
jadex.micro.mandelbrot.model.MandelbrotAlgorithm
- All Implemented Interfaces:
IFractalAlgorithm
Algorithm for calculating the mandelbrot set.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionshortdetermineColor(double xn, double yn, short max) Determine the color of a point.Get default settings for rendering the fractal.booleanThe default algorithm.Methods inherited from class jadex.micro.mandelbrot.model.AbstractFractalAlgorithm
createAlgorithms, equals, getDefaultAlgorithm, hashCode, isOptimizationAllowed, toString, useColorCycle
-
Constructor Details
-
MandelbrotAlgorithm
public MandelbrotAlgorithm()
-
-
Method Details
-
determineColor
public short determineColor(double xn, double yn, short max) Determine the color of a point.- Parameters:
x- The x coordinate.y- The y coordinate.max- The maximum depth.- Returns:
- A value for the point from 0 to max.
-
getDefaultSettings
Get default settings for rendering the fractal. -
isDefault
public boolean isDefault()The default algorithm.- Specified by:
isDefaultin interfaceIFractalAlgorithm- Overrides:
isDefaultin classAbstractFractalAlgorithm
-