vmm.planecurve.parametric
Class Lissajous

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

public class Lissajous
extends PlaneCurveParametric

Defines a Lissajous curve as a parametric plane curve. The two amplitudes, frequencies, and a phase of the curve are parameters that can be set by the user. By default, the curve has amplitudes 2 and 2, frequencies 3 and 5, and phase 0 and is defined on the intervale [0,2pi].


Nested Class Summary
 
Nested classes/interfaces inherited from class vmm.planecurve.parametric.PlaneCurveParametric
PlaneCurveParametric.PlaneCurveParametricView
 
Field Summary
 
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
Lissajous()
           
 
Method Summary
 double xValue(double t)
          Define the x-coordinate function for the curve.
 double yValue(double t)
          Define the y-coordinate function for the curve.
 
Methods inherited from class vmm.planecurve.parametric.PlaneCurveParametric
doDraw, getActionsForView, getCreateAnimation, getDefaultView, 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

Lissajous

public Lissajous()
Method Detail

xValue

public double xValue(double t)
Define the x-coordinate function for the curve.

Specified by:
xValue in class PlaneCurveParametric

yValue

public double yValue(double t)
Define the y-coordinate function for the curve.

Specified by:
yValue in class PlaneCurveParametric