vmm3d.fractals
Class RepeatedSegmentFractal
- java.lang.Object
-
- vmm3d.core.Exhibit
-
- vmm3d.fractals.RepeatedSegmentFractal
-
- All Implemented Interfaces:
- java.util.EventListener, javax.swing.event.ChangeListener, Decorateable, Parameterizable
- Direct Known Subclasses:
- Dragon, Hilbert, Koch, KochEscher, Sierpinski
public abstract class RepeatedSegmentFractal extends Exhibit
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description classRepeatedSegmentFractal.RSFViewDefines the default View of an exhibit of type RepeatedSegmentFractal.
-
Constructor Summary
Constructors Constructor and Description RepeatedSegmentFractal()Constructor sets a default color of BLACK and a default window of (-1,1,-1,1).
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description AnimationgetCreateAnimation(View view)Returns a create animation that shows the curve at each approximation level from 1 up to the currently selected level of recursion.ViewgetDefaultView()Returns a default view of type RSFView, where RSFView is a nested class inside this class.-
Methods inherited from class vmm3d.core.Exhibit
addChangeListener, addDecoration, addExtraXML, addView, clearDecorations, forceRedraw, getActionsForView, getAdditionalAnimationsForView, getAlternativeViews, getBuildAnimation, getDecorations, getDefaultBackground, getDefaultForeground, getDefaultTransform, getDefaultWindow, getFramesForMorphing, getMorphingAnimation, getName, getParameterByName, getParameters, getSettingsCommandsForView, getTitle, getUseFilmstripForMorphing, getViews, parameterChanged, readExtraXML, removeChangeListener, removeDecoration, removeView, render, setDefaultBackground, setDefaultForeground, setDefaultWindow, setDefaultWindow, setFramesForMorphing, setName, setUseFilmstripForMorphing, stateChanged
-
-
-
-
Constructor Detail
-
RepeatedSegmentFractal
public RepeatedSegmentFractal()
Constructor sets a default color of BLACK and a default window of (-1,1,-1,1). It also adds "fractility" and "recursionLevel" parameters to the exhibit.
-
-
Method Detail
-
getCreateAnimation
public Animation getCreateAnimation(View view)
Returns a create animation that shows the curve at each approximation level from 1 up to the currently selected level of recursion.- Overrides:
getCreateAnimationin classExhibit- Parameters:
view- A View that is displaying this Exhibit. The animation, if any, that is returned by this method will be installed in the View's display. If the view is null, than a creation animation that can run independently of a view could be returned.- Returns:
- A creation animation for the given View of this Exhibit. The return value can be null to indicate that no creation animation is to be run.
-
getDefaultView
public View getDefaultView()
Returns a default view of type RSFView, where RSFView is a nested class inside this class.- Overrides:
getDefaultViewin classExhibit
-
-
DMelt 3.0 © DataMelt by jWork.ORG