net.sf.jame.mandelbrot.extensions.fractal.incolouring
Class UniversalRuntime

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<T>
                      extended by net.sf.jame.mandelbrot.extensions.fractal.incolouring.AbstractIncolouringPaletteRuntime<UniversalConfig>
                          extended by net.sf.jame.mandelbrot.extensions.fractal.incolouring.UniversalRuntime
All Implemented Interfaces:
java.util.EventListener, ValueChangeListener

public class UniversalRuntime
extends AbstractIncolouringPaletteRuntime<UniversalConfig>

Author:
Andrea Medeghini

Field Summary
 
Fields inherited from class net.sf.jame.mandelbrot.extensions.fractal.incolouring.AbstractIncolouringPaletteRuntime
colorTable, formulaRuntime, maxColors, palette
 
Constructor Summary
UniversalRuntime()
           
 
Method Summary
 void configReloaded()
          Called when config is changed.
 boolean isChanged()
          Tests and resets the change counter.
 boolean isSolidGuessAllowed()
           
 void prepareForRendering(RenderingFormulaExtensionRuntime<?> formulaRuntime, int maxColors)
          Sets the iterations.
protected  int renderIndex(RenderedPoint cp)
           
 
Methods inherited from class net.sf.jame.mandelbrot.extensions.fractal.incolouring.AbstractIncolouringPaletteRuntime
renderColor, renderColor
 
Methods inherited from class net.sf.jame.mandelbrot.extensions.fractal.incolouring.AbstractIncolouringFormulaRuntime
dispose, isHorizontalSymetryAllowed, isVerticalSymetryAllowed
 
Methods inherited from class net.sf.jame.core.extension.ConfigurableExtensionRuntime
getConfig, setConfig, valueChanged
 
Methods inherited from class net.sf.jame.core.config.RuntimeElement
changeCount, finalize, fireChanged
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UniversalRuntime

public UniversalRuntime()
Method Detail

isSolidGuessAllowed

public boolean isSolidGuessAllowed()
Overrides:
isSolidGuessAllowed in class AbstractIncolouringFormulaRuntime<UniversalConfig>
Returns:
true if solid guess is allowed.
See Also:
AbstractIncolouringFormulaRuntime.isSolidGuessAllowed()

prepareForRendering

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

Overrides:
prepareForRendering in class AbstractIncolouringPaletteRuntime<UniversalConfig>
maxColors - the number of colours.
See Also:
net.sf.jame.mandelbrot.extensions.fractal.outcolouring.AbstractOutcolouringPaletteRuntime#prepareForRendering(int)

renderIndex

protected int renderIndex(RenderedPoint cp)
Specified by:
renderIndex in class AbstractIncolouringPaletteRuntime<UniversalConfig>
Returns:
the index.
See Also:
AbstractIncolouringPaletteRuntime.renderIndex(net.sf.jame.mandelbrot.renderer.RenderedPoint)

isChanged

public boolean isChanged()
Description copied from class: RuntimeElement
Tests and resets the change counter.

Overrides:
isChanged in class AbstractIncolouringPaletteRuntime<UniversalConfig>
Returns:
true if the change counter is greater than 0.
See Also:
RuntimeElement.isChanged()

configReloaded

public void configReloaded()
Description copied from class: ConfigurableExtensionRuntime
Called when config is changed.

Overrides:
configReloaded in class AbstractIncolouringPaletteRuntime<UniversalConfig>
See Also:
AbstractIncolouringPaletteRuntime.configReloaded()