Package jadex.micro.examples.mandelbrot
Class MandelbrotAlgorithm
- java.lang.Object
- 
- jadex.micro.examples.mandelbrot.MandelbrotAlgorithm
 
- 
- All Implemented Interfaces:
- IFractalAlgorithm
 
 public class MandelbrotAlgorithm extends java.lang.Object implements IFractalAlgorithm Algorithm for calculating the mandelbrot set.
- 
- 
Constructor SummaryConstructors Constructor Description MandelbrotAlgorithm()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description shortdetermineColor(double xn, double yn, short max)Determine the color of a point.booleanequals(java.lang.Object obj)Test if two objects are equal.AreaDatagetDefaultSettings()Get default settings for rendering the fractal.inthashCode()Get the hash code.booleanisOptimizationAllowed()Can areas be filled?java.lang.StringtoString()Get a string representation.booleanuseColorCycle()Should a cyclic color scheme be used?
 
- 
- 
- 
Method Detail- 
determineColorpublic short determineColor(double xn, double yn, short max)Determine the color of a point.- Specified by:
- determineColorin interface- IFractalAlgorithm
- Parameters:
- x- The x coordinate.
- y- The y coordinate.
- max- The maximum depth.
- Returns:
- A value for the point from 0 to max.
 
 - 
isOptimizationAllowedpublic boolean isOptimizationAllowed() Can areas be filled?- Specified by:
- isOptimizationAllowedin interface- IFractalAlgorithm
 
 - 
getDefaultSettingspublic AreaData getDefaultSettings() Get default settings for rendering the fractal.- Specified by:
- getDefaultSettingsin interface- IFractalAlgorithm
 
 - 
useColorCyclepublic boolean useColorCycle() Should a cyclic color scheme be used?- Specified by:
- useColorCyclein interface- IFractalAlgorithm
 
 - 
toStringpublic java.lang.String toString() Get a string representation.- Overrides:
- toStringin class- java.lang.Object
 
 - 
equalspublic boolean equals(java.lang.Object obj) Test if two objects are equal.- Overrides:
- equalsin class- java.lang.Object
 
 - 
hashCodepublic int hashCode() Get the hash code.- Overrides:
- hashCodein class- java.lang.Object
 
 
- 
 
-