Class LyapunovAlgorithm

  • All Implemented Interfaces:
    IFractalAlgorithm

    public class LyapunovAlgorithm
    extends java.lang.Object
    implements IFractalAlgorithm
    Algorithm for calculating Lyapunov fractals.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String GENERATOR
      Generator string (any combination of As and Bs).
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      short determineColor​(double a, double b, short max)
      Determine the color of a point.
      boolean equals​(java.lang.Object obj)
      Test if two objects are equal.
      AreaData getDefaultSettings()
      Get default settings for rendering the fractal.
      int hashCode()
      Get the hash code.
      boolean isOptimizationAllowed()
      Can areas be filled?
      java.lang.String toString()
      Get a string representation.
      boolean useColorCycle()
      Should a cyclic color scheme be used?
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • GENERATOR

        public static final java.lang.String GENERATOR
        Generator string (any combination of As and Bs).
        See Also:
        Constant Field Values
    • Constructor Detail

      • LyapunovAlgorithm

        public LyapunovAlgorithm()
    • Method Detail

      • determineColor

        public short determineColor​(double a,
                                    double b,
                                    short max)
        Determine the color of a point.
        Specified by:
        determineColor in 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-1 or -1 for max.
      • toString

        public java.lang.String toString()
        Get a string representation.
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Test if two objects are equal.
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Get the hash code.
        Overrides:
        hashCode in class java.lang.Object