package prefuse.action.animate;
import prefuse.action.Action;
/**
* Animator that toggles rendering quality to allow for smooth animations but
* high quality rendering of still images. At the beginning of an animation,
* high quality rendering (if enabled) is disabled, and at the end the original
* setting is restored.
*
* @author jeffrey heer
*/
public class QualityControlAnimator extends Action {
/**
* @see prefuse.action.Action#run(double)
*/
public void run(double frac) {
if ( m_vis == null ) return;
if ( frac == 0.0 || frac == 1.0 ) {
boolean quality = frac >= 1.0;
for ( int i=0; i