prefuse.activity
Class SlowInSlowOutPacer

java.lang.Object
  extended by prefuse.activity.SlowInSlowOutPacer
All Implemented Interfaces:
Pacer

public class SlowInSlowOutPacer
extends java.lang.Object
implements Pacer

A pacing function that provides slow-in, slow-out animation, where the animation begins at a slower rate, speeds up through the middle of the animation, and then slows down again before stopping. This is calculated by using an appropriately phased sigmoid function of the form 1/(1+exp(-x)).

Author:
jeffrey heer

Constructor Summary
SlowInSlowOutPacer()
           
 
Method Summary
 double pace(double f)
          Pacing function providing slow-in, slow-out animation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SlowInSlowOutPacer

public SlowInSlowOutPacer()
Method Detail

pace

public double pace(double f)
Pacing function providing slow-in, slow-out animation

Specified by:
pace in interface Pacer
Parameters:
f - the input value, should be between 0-1
Returns:
the output value, should be between 0-1
See Also:
Pacer.pace(double)


Copyright © 2007 Regents of the University of California