net.sf.jame.mandelbrot.fractal.outcolouring.extension
Class OutcolouringFormulaExtensionRuntime<T extends OutcolouringFormulaExtensionConfig>

java.lang.Object
  extended by net.sf.jame.core.config.RuntimeElement
      extended by net.sf.jame.core.extension.ExtensionRuntime
          extended by net.sf.jame.core.extension.ConfigurableExtensionRuntime<T>
              extended by net.sf.jame.mandelbrot.fractal.outcolouring.extension.OutcolouringFormulaExtensionRuntime<T>
All Implemented Interfaces:
java.util.EventListener, ValueChangeListener
Direct Known Subclasses:
AbstractOutcolouringFormulaRuntime

public abstract class OutcolouringFormulaExtensionRuntime<T extends OutcolouringFormulaExtensionConfig>
extends ConfigurableExtensionRuntime<T>

Author:
Andrea Medeghini

Constructor Summary
OutcolouringFormulaExtensionRuntime()
           
 
Method Summary
abstract  boolean isHorizontalSymetryAllowed()
           
abstract  boolean isSolidGuessAllowed()
           
abstract  boolean isVerticalSymetryAllowed()
           
abstract  void prepareForRendering(RenderingFormulaExtensionRuntime<?> formulaRuntime, int maxColors)
          Sets the iterations.
abstract  int renderColor(RenderedPoint cp)
           
abstract  int renderColor(RenderedPoint cp, int shift)
           
 
Methods inherited from class net.sf.jame.core.extension.ConfigurableExtensionRuntime
configReloaded, dispose, getConfig, setConfig, valueChanged
 
Methods inherited from class net.sf.jame.core.config.RuntimeElement
changeCount, finalize, fireChanged, isChanged
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OutcolouringFormulaExtensionRuntime

public OutcolouringFormulaExtensionRuntime()
Method Detail

isSolidGuessAllowed

public abstract boolean isSolidGuessAllowed()
Returns:
true if solid guess is allowed.

isHorizontalSymetryAllowed

public abstract boolean isHorizontalSymetryAllowed()
Returns:
true if horizontal symetry is allowed.

isVerticalSymetryAllowed

public abstract boolean isVerticalSymetryAllowed()
Returns:
true if vertical symetry is allowed.

prepareForRendering

public abstract void prepareForRendering(RenderingFormulaExtensionRuntime<?> formulaRuntime,
                                         int maxColors)
Sets the iterations.

Parameters:
maxColors - the number of colours.

renderColor

public abstract int renderColor(RenderedPoint cp)
Parameters:
cp -
Returns:
the color.

renderColor

public abstract int renderColor(RenderedPoint cp,
                                int shift)
Parameters:
cp -
shift -
Returns:
the color.