vmm.planecurve.parametric
Class Circle
java.lang.Object
vmm.core.Exhibit
vmm.planecurve.PlaneCurve
vmm.planecurve.parametric.PlaneCurveParametric
vmm.planecurve.parametric.DecoratedCurve
vmm.planecurve.parametric.Circle
- All Implemented Interfaces:
- java.util.EventListener, javax.swing.event.ChangeListener, Decorateable, Parameterizable
public class Circle
- extends DecoratedCurve
A circle, given as a parametric plane curve.
Constructor Summary |
Circle()
Construct a circle of radius 3, centered at the origin. |
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 |
Circle
public Circle()
- Construct a circle of radius 3, centered at the origin. The radius is an animateable
parameter with default animation start and end values 1 and 5. The circle is given
by the parametric equations (radius*cos(t),radius*sin(t)), for t between 0 and 2*pi.
xValue
public double xValue(double t)
- Description copied from class:
PlaneCurveParametric
- Computes x(t) for a given value of t.
- Specified by:
xValue
in class PlaneCurveParametric
yValue
public double yValue(double t)
- Description copied from class:
PlaneCurveParametric
- Computes y(t) for a given value of t.
- Specified by:
yValue
in class PlaneCurveParametric
xDerivativeValue
public double xDerivativeValue(double t)
- Description copied from class:
PlaneCurveParametric
- Computes x'(t) for a given value of t. The default version defined in this class computes an approximate
value numerically, using values of the function itself at points near t.
- Overrides:
xDerivativeValue
in class PlaneCurveParametric
yDerivativeValue
public double yDerivativeValue(double t)
- Description copied from class:
PlaneCurveParametric
- Computes y'(t) for a given value of t. The default version defined in this class computes an approximate
value numerically, using values of the function itself at points near t.
- Overrides:
yDerivativeValue
in class PlaneCurveParametric
x2ndDerivativeValue
public double x2ndDerivativeValue(double t)
- Description copied from class:
PlaneCurveParametric
- Computes x''(t) for a given value of t. The default version defined in this class computes an approximate
value numerically, using values of the function itself at points near t.
- Overrides:
x2ndDerivativeValue
in class PlaneCurveParametric
y2ndDerivativeValue
public double y2ndDerivativeValue(double t)
- Description copied from class:
PlaneCurveParametric
- Computes y''(t) for a given value of t. The default version defined in this class computes an approximate
value numerically, using values of the function itself at points near t.
- Overrides:
y2ndDerivativeValue
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)
- Specified by:
drawNeededStuff
in class DecoratedCurve