vmm.fractals
Class KochEscher

java.lang.Object
  extended by vmm.core.Exhibit
      extended by vmm.fractals.RepeatedSegmentFractal
          extended by vmm.fractals.KochEscher
All Implemented Interfaces:
java.util.EventListener, javax.swing.event.ChangeListener, Decorateable, Parameterizable

public class KochEscher
extends RepeatedSegmentFractal

Represents an Escher version of Koch "snowflake" curve.


Nested Class Summary
 
Nested classes/interfaces inherited from class vmm.fractals.RepeatedSegmentFractal
RepeatedSegmentFractal.RSFView
 
Field Summary
 
Fields inherited from class vmm.fractals.RepeatedSegmentFractal
colorRepeatFactor, fastDrawRecursionLevel, fractality, recursionLevel
 
Fields inherited from class vmm.core.Exhibit
decorations, exhibitNeedsRedraw, isMorphing, morphingView, parameters, previousTransform
 
Constructor Summary
KochEscher()
           
 
Method Summary
protected  Complex[] computeNextLevel(Complex[] kochCurve, int computedLevel)
          This abstract method computes one approximation level from the previous one, which has already been computed.
 
Methods inherited from class vmm.fractals.RepeatedSegmentFractal
computeDrawData, doDraw, getCreateAnimation, getDefaultView
 
Methods inherited from class vmm.core.Exhibit
addChangeListener, addDecoration, addExtraXML, addParameter, addView, clearDecorations, computeDrawDataHook, doDrawHook, fireExhibitChangeEvent, forceRedraw, getActionsForView, getAdditionalAnimationsForView, getAlternativeViews, getBuildAnimation, getDecorations, getDefaultBackground, getDefaultForeground, getDefaultTransform, getDefaultWindow, getFramesForMorphing, getMorphingAnimation, getName, getParameterByName, getParameters, getSettingsCommandsForView, getTitle, getUseFilmstripForMorphing, getViews, parameterChanged, readExtraXML, removeChangeListener, removeDecoration, removeParameter, removeView, render, setDefaultBackground, setDefaultForeground, setDefaultWindow, setDefaultWindow, setFramesForMorphing, setName, setUseFilmstripForMorphing, stateChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KochEscher

public KochEscher()
Method Detail

computeNextLevel

protected Complex[] computeNextLevel(Complex[] kochCurve,
                                     int computedLevel)
Description copied from class: RepeatedSegmentFractal
This abstract method computes one approximation level from the previous one, which has already been computed. This abstract method must be defined in any concrete subclass.

Specified by:
computeNextLevel in class RepeatedSegmentFractal
Parameters:
kochCurve - This array stores the points that have been computed for the current approximation level. This array can be null, if the computedLevel is zero.
computedLevel - This is the approximation level that has been comptuted to get the points in curvePoints. A zero value for this paramter means that the first, or base level, approximation should be computed.
Returns:
An array containing the points in the next level approximation of the curve.