KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > prefuse > activity > Pacer


1 package prefuse.activity;
2
3 /**
4  * A Pacer, or pacing function, maps one double value to another; they
5  * are used to parameterize animation rates, where the input value f moves
6  * from 0 to 1 linearly, but the returned output can vary quite differently
7  * in response to the input.
8  *
9  * @version 1.0
10  * @author <a HREF="http://jheer.org">jeffrey heer</a>
11  * @see prefuse.action.Action
12  * @see prefuse.activity.SlowInSlowOutPacer
13  * @see prefuse.activity.ThereAndBackPacer
14  */

15 public interface Pacer {
16
17     /**
18      * Maps one double value to another to determine animation pacing. Under
19      * most circumstances, both the input and output values should be in the
20      * range 0-1, inclusive.
21      * @param f the input value, should be between 0-1
22      * @return the output value, should be between 0-1
23      */

24     public double pace(double f);
25     
26 } // end of interface Pacer
27
Popular Tags