Package jadex.micro.mandelbrot.model
Class LyapunovAlgorithm
java.lang.Object
jadex.micro.mandelbrot.model.AbstractFractalAlgorithm
jadex.micro.mandelbrot.model.LyapunovAlgorithm
- All Implemented Interfaces:
IFractalAlgorithm
Algorithm for calculating Lyapunov fractals.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionshort
determineColor
(double a, double b, short max) Determine the color of a point.Get default settings for rendering the fractal.boolean
Can areas be filled?boolean
Should a cyclic color scheme be used?Methods inherited from class jadex.micro.mandelbrot.model.AbstractFractalAlgorithm
createAlgorithms, equals, getDefaultAlgorithm, hashCode, isDefault, toString
-
Field Details
-
GENERATOR
Generator string (any combination of As and Bs).- See Also:
-
-
Constructor Details
-
LyapunovAlgorithm
public LyapunovAlgorithm()
-
-
Method Details
-
determineColor
public short determineColor(double a, double b, short max) Determine the color of a point.- Parameters:
a
- The x coordinate.b
- 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-1 or -1 for max.
-
getDefaultSettings
Get default settings for rendering the fractal. -
useColorCycle
public boolean useColorCycle()Should a cyclic color scheme be used?- Specified by:
useColorCycle
in interfaceIFractalAlgorithm
- Overrides:
useColorCycle
in classAbstractFractalAlgorithm
-
isOptimizationAllowed
public boolean isOptimizationAllowed()Can areas be filled?- Specified by:
isOptimizationAllowed
in interfaceIFractalAlgorithm
- Overrides:
isOptimizationAllowed
in classAbstractFractalAlgorithm
-