コード例 #1
0
 public void SetInterpolatorCurve(ITimeCurve interpolator)
 {
     this.interpolator = interpolator;
     if (layoutSet)
     {
         ComputeCurve(size, size, Precision);
         Invalidate();
     }
 }
コード例 #2
0
        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);
        }
コード例 #3
0
 public void SetTimeCurve(ITimeCurve curve)
 {
     this.curve = curve;
 }