prefuse.activity
Class ThereAndBackPacer

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

public class ThereAndBackPacer
extends java.lang.Object
implements Pacer

Pacing function that maps the animation fraction f such that it ranges from 0 to 1 and then back to 0 again. This is useful for animations with periodic activity.

Author:
jeffrey heer

Constructor Summary
ThereAndBackPacer()
           
 
Method Summary
 double pace(double f)
          Pacing function for providing there-and-back (periodic) transitions.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThereAndBackPacer

public ThereAndBackPacer()
Method Detail

pace

public double pace(double f)
Pacing function for providing there-and-back (periodic) transitions.

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