net.sf.jame.mandelbrot.extensions.fractal.incolouring.processed
Class BinaryRuntime

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.incolouring.extension.IncolouringFormulaExtensionRuntime<T>
                  extended by net.sf.jame.mandelbrot.extensions.fractal.incolouring.AbstractIncolouringFormulaRuntime<BinaryConfig>
                      extended by net.sf.jame.mandelbrot.extensions.fractal.incolouring.processed.BinaryRuntime
All Implemented Interfaces:
java.util.EventListener, ValueChangeListener

public class BinaryRuntime
extends AbstractIncolouringFormulaRuntime<BinaryConfig>

Author:
Andrea Medeghini

Constructor Summary
BinaryRuntime()
           
 
Method Summary
 void prepareForRendering(RenderingFormulaExtensionRuntime<?> formulaRuntime, int maxColors)
          Sets the iterations.
 int renderColor(RenderedPoint cp)
           
 int renderColor(RenderedPoint cp, int shift)
           
protected  int renderIndex(RenderedPoint cp)
           
 
Methods inherited from class net.sf.jame.mandelbrot.extensions.fractal.incolouring.AbstractIncolouringFormulaRuntime
dispose, isHorizontalSymetryAllowed, isSolidGuessAllowed, isVerticalSymetryAllowed
 
Methods inherited from class net.sf.jame.core.extension.ConfigurableExtensionRuntime
configReloaded, 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

BinaryRuntime

public BinaryRuntime()
Method Detail

prepareForRendering

public void prepareForRendering(RenderingFormulaExtensionRuntime<?> formulaRuntime,
                                int maxColors)
Description copied from class: IncolouringFormulaExtensionRuntime
Sets the iterations.

Overrides:
prepareForRendering in class AbstractIncolouringFormulaRuntime<BinaryConfig>
maxColors - the number of colours.
See Also:
net.sf.jame.mandelbrot.extensions.fractal.incolouring.AbstractIncolouringFormulaRuntime#prepareForRendering(int)

renderColor

public int renderColor(RenderedPoint cp)
Specified by:
renderColor in class IncolouringFormulaExtensionRuntime<BinaryConfig>
Returns:
the color.
See Also:
IncolouringFormulaExtensionRuntime.renderColor(net.sf.jame.mandelbrot.renderer.RenderedPoint)

renderColor

public int renderColor(RenderedPoint cp,
                       int shift)
Specified by:
renderColor in class IncolouringFormulaExtensionRuntime<BinaryConfig>
Returns:
the color.
See Also:
IncolouringFormulaExtensionRuntime.renderColor(net.sf.jame.mandelbrot.renderer.RenderedPoint, int)

renderIndex

protected int renderIndex(RenderedPoint cp)
Parameters:
cp -
Returns:
the index.