public void SetInterpolatorCurve(ITimeCurve interpolator) { this.interpolator = interpolator; if (layoutSet) { ComputeCurve(size, size, Precision); Invalidate(); } }
void HandleCurveSelected(object sender, AdapterView.ItemSelectedEventArgs e) { if (currentExperiment == null) { return; } ITimeCurve curve = null; if (e.Position == 0) { curve = currentExperiment.CreatePreferredTimeCurve(); } else { curve = availableCurves [e.Position - 1]; } currentExperiment.SetTimeCurve(curve); graph.SetAnimationCompletion(0); graph.SetInterpolatorCurve(curve); }
public void SetTimeCurve(ITimeCurve curve) { this.curve = curve; }