vmm.planecurve.parametric
Class Epizykloide

java.lang.Object
  extended by vmm.core.Exhibit
      extended by vmm.planecurve.PlaneCurve
          extended by vmm.planecurve.parametric.PlaneCurveParametric
              extended by vmm.planecurve.parametric.DecoratedCurve
                  extended by vmm.planecurve.parametric.Epizykloide
All Implemented Interfaces:
java.util.EventListener, javax.swing.event.ChangeListener, Decorateable, Parameterizable

public class Epizykloide
extends DecoratedCurve

Defines parametric Epi- and Hypo- Cycloids. Sign of frequ determins Epi:+ and Hypo:- Shows rolling wheel and tangent construction.


Nested Class Summary
 
Nested classes/interfaces inherited from class vmm.planecurve.parametric.DecoratedCurve
DecoratedCurve.MMOView
 
Nested classes/interfaces inherited from class vmm.planecurve.parametric.PlaneCurveParametric
PlaneCurveParametric.PlaneCurveParametricView
 
Field Summary
 
Fields inherited from class vmm.planecurve.parametric.DecoratedCurve
strokeSize, wantedColor
 
Fields inherited from class vmm.planecurve.parametric.PlaneCurveParametric
tmax, tmin, tResolution, tVals
 
Fields inherited from class vmm.planecurve.PlaneCurve
movingSquare, points, randomSquare
 
Fields inherited from class vmm.core.Exhibit
decorations, exhibitNeedsRedraw, isMorphing, morphingView, parameters, previousTransform
 
Constructor Summary
Epizykloide()
           
 
Method Summary
protected  void drawNeededStuff(java.awt.Graphics2D g, View view, Transform limits, double t)
          This drawNeededStuff contains two different startup animations.
 View getDefaultView()
          Overridden to return a view of type MMOView.
 double xValue(double t)
          Define the x-coordinate function x(t) = l*rr*cos(fr*t) + r*cos(t) for the curve.
 double yValue(double t)
          Define the y-coordinate function y(t) = l*rr*sin(fr*t) + r*sin(t) for the curve.
 
Methods inherited from class vmm.planecurve.parametric.DecoratedCurve
doDraw, getCreateAnimation, getStrokeSize, getWantedColor, setStrokeSize, setWantedColor
 
Methods inherited from class vmm.planecurve.parametric.PlaneCurveParametric
getActionsForView, getT, getTResolution, makePoints, myCircle, x2ndDerivativeValue, xDerivativeValue, y2ndDerivativeValue, yDerivativeValue
 
Methods inherited from class vmm.planecurve.PlaneCurve
computeDrawData, fillRandomSquare, getPoint, getPointCount, initializeMovingSquare, moveSquare
 
Methods inherited from class vmm.core.Exhibit
addChangeListener, addDecoration, addExtraXML, addParameter, addView, clearDecorations, computeDrawDataHook, doDrawHook, fireExhibitChangeEvent, forceRedraw, 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

Epizykloide

public Epizykloide()
Method Detail

xValue

public double xValue(double t)
Define the x-coordinate function x(t) = l*rr*cos(fr*t) + r*cos(t) for the curve.

Specified by:
xValue in class PlaneCurveParametric

yValue

public double yValue(double t)
Define the y-coordinate function y(t) = l*rr*sin(fr*t) + r*sin(t) for the curve.

Specified by:
yValue in class PlaneCurveParametric

getDefaultView

public View getDefaultView()
Description copied from class: DecoratedCurve
Overridden to return a view of type MMOView.

Overrides:
getDefaultView in class DecoratedCurve

drawNeededStuff

protected void drawNeededStuff(java.awt.Graphics2D g,
                               View view,
                               Transform limits,
                               double t)
This drawNeededStuff contains two different startup animations.

Specified by:
drawNeededStuff in class DecoratedCurve