vmm3d.planecurve.parametric
Class ConicSection
- java.lang.Object
-
- vmm3d.core.Exhibit
-
- vmm3d.planecurve.PlaneCurve
-
- vmm3d.planecurve.parametric.PlaneCurveParametric
-
- vmm3d.planecurve.parametric.ConicSection
-
- All Implemented Interfaces:
- java.util.EventListener, javax.swing.event.ChangeListener, Decorateable, Parameterizable
public abstract class ConicSection extends PlaneCurveParametric
A common base class for Elippse, Parabola, and Hyperbola, to show foci and "directrix" during morphing and extra stuff during the creation animation. Note that Circle is not a subclass of ConicSection since it does not have these extra decorations.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class vmm3d.planecurve.parametric.PlaneCurveParametric
PlaneCurveParametric.PlaneCurveParametricView
-
-
Constructor Summary
Constructors Constructor and Description ConicSection()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description AnimationgetCreateAnimation(View view)Returns a creation animation that adds foci, directrix, and othe stuff during the animation.BasicAnimatorgetMorphingAnimation(View view, int looping)Returns a modified morphing animation that adds foci and directrix during the animation.-
Methods inherited from class vmm3d.planecurve.parametric.PlaneCurveParametric
doDraw, getActionsForView, getDefaultView, getT, getTResolution, myCircle, x2ndDerivativeValue, xDerivativeValue, xValue, y2ndDerivativeValue, yDerivativeValue, yValue
-
Methods inherited from class vmm3d.planecurve.PlaneCurve
fillRandomSquare, getPoint, getPointCount, initializeMovingSquare
-
Methods inherited from class vmm3d.core.Exhibit
addChangeListener, addDecoration, addExtraXML, addView, clearDecorations, forceRedraw, getAdditionalAnimationsForView, getAlternativeViews, getBuildAnimation, getDecorations, getDefaultBackground, getDefaultForeground, getDefaultTransform, getDefaultWindow, getFramesForMorphing, getName, getParameterByName, getParameters, getSettingsCommandsForView, getTitle, getUseFilmstripForMorphing, getViews, parameterChanged, readExtraXML, removeChangeListener, removeDecoration, removeView, render, setDefaultBackground, setDefaultForeground, setDefaultWindow, setDefaultWindow, setFramesForMorphing, setName, setUseFilmstripForMorphing, stateChanged
-
-
-
-
Method Detail
-
getCreateAnimation
public Animation getCreateAnimation(View view)
Returns a creation animation that adds foci, directrix, and othe stuff during the animation.- Overrides:
getCreateAnimationin classPlaneCurveParametric- Parameters:
view- The View where the animation will be installed. If this is null, then the return value is null.- 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.
-
getMorphingAnimation
public BasicAnimator getMorphingAnimation(View view, int looping)
Returns a modified morphing animation that adds foci and directrix during the animation. The decoration is added to view, if it is non-null, and otherwise is added directly to this exhibit.- Overrides:
getMorphingAnimationin classExhibit- Parameters:
view- The view that the animation will be shown in, if any. If the value is null, then the animation will not be associated with any particular view. In that case, the Morphing animation will animate the Exhibit in all Views in which it appears, since it operates by changing parameters of the exhibit. If the View is non-null, then only the specified View will receive changeEvents from the Exhibit while the morph is in progress.looping- This must be one of the valuesBasicAnimator.ONCE,BasicAnimator.LOOP, orBasicAnimator.OSCILLATE. The value is passed, without any error checking, to the animation'ssetLoopingmethod.- See Also:
TimerAnimation.setLooping(int),Exhibit.setFramesForMorphing(int)
-
-
DMelt 3.0 © DataMelt by jWork.ORG