net.sf.jame.mandelbrot.extensions.fractal.rendering
Class AbstractRenderingFormulaRuntime<T extends RenderingFormulaExtensionConfig>

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.rendering.extension.RenderingFormulaExtensionRuntime<T>
                  extended by net.sf.jame.mandelbrot.extensions.fractal.rendering.AbstractRenderingFormulaRuntime<T>
All Implemented Interfaces:
java.util.EventListener, ValueChangeListener
Direct Known Subclasses:
COSZRuntime, DRFRuntime, EXPZRuntime, MAGNETISM1Runtime, MAGNETISM2Runtime, NEWTON3Runtime, SINZRuntime, Z2Runtime, Z3Runtime, Z4Runtime, Z5Runtime, ZARuntime, ZNRuntime

public abstract class AbstractRenderingFormulaRuntime<T extends RenderingFormulaExtensionConfig>
extends RenderingFormulaExtensionRuntime<T>

Author:
Andrea Medeghini

Field Summary
protected  ProcessingFormulaExtensionRuntime formulaRuntime
           
protected  int iterations
           
protected  OrbitTrapExtensionRuntime<?> orbitTrapRuntime
           
protected  double threshold
           
 
Constructor Summary
AbstractRenderingFormulaRuntime()
           
 
Method Summary
 void dispose()
          Disposes the element resources.
 DoubleVector2D getCenter()
          Returns the center.
 DoubleVector2D getDefaultCenter()
          Returns the default center.
 DoubleVector2D getDefaultScale()
          Returns the default scale.
 double getHorizontalSymetryPoint()
          Returns the horizontal symetry point.
 Complex getInitialPoint()
          Returns the initial point.
 int getIterations()
          Returns the iterations.
 DoubleVector2D getScale()
          Returns the scale.
 double getThreshold()
          Returns the threshold.
 double getVerticalSymetryPoint()
          Returns the vertical symetry point.
 boolean isHorizontalSymetryAllowed()
           
 boolean isMandelbrotModeAllowed()
           
 boolean isVerticalSymetryAllowed()
           
 void prepareForRendering(ProcessingFormulaExtensionRuntime formulaRuntime, OrbitTrapExtensionRuntime<?> orbitTrapRuntime)
          Prepares formula for rendering.
 
Methods inherited from class net.sf.jame.mandelbrot.fractal.rendering.extension.RenderingFormulaExtensionRuntime
getNormalizedIterationCount, renderOrbit, renderPoint
 
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
 

Field Detail

formulaRuntime

protected ProcessingFormulaExtensionRuntime formulaRuntime

orbitTrapRuntime

protected OrbitTrapExtensionRuntime<?> orbitTrapRuntime

threshold

protected double threshold

iterations

protected int iterations
Constructor Detail

AbstractRenderingFormulaRuntime

public AbstractRenderingFormulaRuntime()
Method Detail

prepareForRendering

public void prepareForRendering(ProcessingFormulaExtensionRuntime formulaRuntime,
                                OrbitTrapExtensionRuntime<?> orbitTrapRuntime)
Description copied from class: RenderingFormulaExtensionRuntime
Prepares formula for rendering.

Specified by:
prepareForRendering in class RenderingFormulaExtensionRuntime<T extends RenderingFormulaExtensionConfig>
See Also:
RenderingFormulaExtensionRuntime.prepareForRendering(net.sf.jame.mandelbrot.fractal.processing.extension.ProcessingFormulaExtensionRuntime, net.sf.jame.mandelbrot.fractal.orbittrap.extension.OrbitTrapExtensionRuntime)

isMandelbrotModeAllowed

public boolean isMandelbrotModeAllowed()
Specified by:
isMandelbrotModeAllowed in class RenderingFormulaExtensionRuntime<T extends RenderingFormulaExtensionConfig>
Returns:
true if mandelbrot mode is allowed.
See Also:
RenderingFormulaExtensionRuntime.isMandelbrotModeAllowed()

getThreshold

public double getThreshold()
Description copied from class: RenderingFormulaExtensionRuntime
Returns the threshold.

Specified by:
getThreshold in class RenderingFormulaExtensionRuntime<T extends RenderingFormulaExtensionConfig>
Returns:
the threshold.
See Also:
RenderingFormulaExtensionRuntime.getThreshold()

getIterations

public int getIterations()
Description copied from class: RenderingFormulaExtensionRuntime
Returns the iterations.

Specified by:
getIterations in class RenderingFormulaExtensionRuntime<T extends RenderingFormulaExtensionConfig>
Returns:
the iterations.
See Also:
RenderingFormulaExtensionRuntime.getIterations()

getDefaultCenter

public DoubleVector2D getDefaultCenter()
Description copied from class: RenderingFormulaExtensionRuntime
Returns the default center.

Specified by:
getDefaultCenter in class RenderingFormulaExtensionRuntime<T extends RenderingFormulaExtensionConfig>
Returns:
the default center.
See Also:
RenderingFormulaExtensionRuntime.getDefaultCenter()

getDefaultScale

public DoubleVector2D getDefaultScale()
Description copied from class: RenderingFormulaExtensionRuntime
Returns the default scale.

Specified by:
getDefaultScale in class RenderingFormulaExtensionRuntime<T extends RenderingFormulaExtensionConfig>
Returns:
the default scale.
See Also:
RenderingFormulaExtensionRuntime.getDefaultScale()

getCenter

public DoubleVector2D getCenter()
Description copied from class: RenderingFormulaExtensionRuntime
Returns the center.

Specified by:
getCenter in class RenderingFormulaExtensionRuntime<T extends RenderingFormulaExtensionConfig>
Returns:
the center.
See Also:
RenderingFormulaExtensionRuntime.getCenter()

getScale

public DoubleVector2D getScale()
Description copied from class: RenderingFormulaExtensionRuntime
Returns the scale.

Specified by:
getScale in class RenderingFormulaExtensionRuntime<T extends RenderingFormulaExtensionConfig>
Returns:
the scale.
See Also:
RenderingFormulaExtensionRuntime.getScale()

getInitialPoint

public Complex getInitialPoint()
Description copied from class: RenderingFormulaExtensionRuntime
Returns the initial point.

Specified by:
getInitialPoint in class RenderingFormulaExtensionRuntime<T extends RenderingFormulaExtensionConfig>
Returns:
the initial point.
See Also:
RenderingFormulaExtensionRuntime.getInitialPoint()

isHorizontalSymetryAllowed

public boolean isHorizontalSymetryAllowed()
Specified by:
isHorizontalSymetryAllowed in class RenderingFormulaExtensionRuntime<T extends RenderingFormulaExtensionConfig>
Returns:
true if horizontal symetry is allowed.
See Also:
RenderingFormulaExtensionRuntime.isHorizontalSymetryAllowed()

isVerticalSymetryAllowed

public boolean isVerticalSymetryAllowed()
Specified by:
isVerticalSymetryAllowed in class RenderingFormulaExtensionRuntime<T extends RenderingFormulaExtensionConfig>
Returns:
true if vertical symetry is allowed.
See Also:
RenderingFormulaExtensionRuntime.isVerticalSymetryAllowed()

getHorizontalSymetryPoint

public double getHorizontalSymetryPoint()
Description copied from class: RenderingFormulaExtensionRuntime
Returns the horizontal symetry point.

Specified by:
getHorizontalSymetryPoint in class RenderingFormulaExtensionRuntime<T extends RenderingFormulaExtensionConfig>
Returns:
the horizontal symetry point.
See Also:
RenderingFormulaExtensionRuntime.getHorizontalSymetryPoint()

getVerticalSymetryPoint

public double getVerticalSymetryPoint()
Description copied from class: RenderingFormulaExtensionRuntime
Returns the vertical symetry point.

Specified by:
getVerticalSymetryPoint in class RenderingFormulaExtensionRuntime<T extends RenderingFormulaExtensionConfig>
Returns:
the vertical symetry point.
See Also:
RenderingFormulaExtensionRuntime.getVerticalSymetryPoint()

dispose

public void dispose()
Description copied from class: RuntimeElement
Disposes the element resources. The default implementation does nothing.

Overrides:
dispose in class ConfigurableExtensionRuntime<T extends RenderingFormulaExtensionConfig>
See Also:
RuntimeElement.dispose()