Package jadex.micro.mandelbrot.model
Interface IFractalAlgorithm
- All Known Implementing Classes:
AbstractFractalAlgorithm,BurningShipFractalAlgorithm,JuliaSetAlgorithm,LyapunovAlgorithm,MandelbrotAlgorithm,NewtonFractalAlgorithm
public interface IFractalAlgorithm
Algorithm for calculating a fractal.
-
Method Summary
Modifier and TypeMethodDescriptionshortdetermineColor(double x, double y, short max) Determine the color of a point.Get default settings for rendering the fractal.booleanThe default algorithm.booleanCan areas be filled?booleanShould a cyclic color scheme be used?
-
Method Details
-
determineColor
short determineColor(double x, double y, 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-1 or -1 if the value is at the maximum.
-
isOptimizationAllowed
boolean isOptimizationAllowed()Can areas be filled? -
getDefaultSettings
AreaData getDefaultSettings()Get default settings for rendering the fractal. -
useColorCycle
boolean useColorCycle()Should a cyclic color scheme be used? -
isDefault
boolean isDefault()The default algorithm.
-