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

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

public class UniversalTrueColorRuntime
extends AbstractIncolouringFormulaRuntime<UniversalTrueColorConfig>

Author:
Andrea Medeghini

Constructor Summary
UniversalTrueColorRuntime()
           
 
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.
 int renderColor(RenderedPoint cp)
           
 int renderColor(RenderedPoint cp, int shift)
           
 
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

UniversalTrueColorRuntime

public UniversalTrueColorRuntime()
Method Detail

isSolidGuessAllowed

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

prepareForRendering

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

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

renderColor

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

renderColor

public int renderColor(RenderedPoint cp,
                       int shift)
Specified by:
renderColor in class IncolouringFormulaExtensionRuntime<UniversalTrueColorConfig>
Returns:
the color.
See Also:
OutcolouringFormulaExtensionRuntime.renderColor(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 RuntimeElement
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 ConfigurableExtensionRuntime<UniversalTrueColorConfig>
See Also:
ConfigurableExtensionRuntime.configReloaded()