prefuse.action.animate
Class VisibilityAnimator

java.lang.Object
  extended by prefuse.activity.Activity
      extended by prefuse.action.Action
          extended by prefuse.action.GroupAction
              extended by prefuse.action.animate.VisibilityAnimator

public class VisibilityAnimator
extends GroupAction

Animator that interpolates the visibility status of VisualItems. Items not currently visible but with end visibilty true are faded in, while items currently visible but with end visibility false are faded out and finally set to not visible.

Author:
jeffrey heer

Field Summary
 
Fields inherited from class prefuse.action.GroupAction
m_group
 
Fields inherited from class prefuse.action.Action
m_vis
 
Fields inherited from class prefuse.activity.Activity
DEFAULT_STEP_TIME, INFINITY
 
Constructor Summary
VisibilityAnimator()
          Create a new VisibilityAnimator that processes all data groups.
VisibilityAnimator(java.lang.String group)
          Create a new VisibilityAnimator that processes the specified group.
 
Method Summary
 void run(double frac)
          Runs this Action, triggering whatever processing this Action performs.
 
Methods inherited from class prefuse.action.GroupAction
getGroup, setGroup
 
Methods inherited from class prefuse.action.Action
getVisualization, run, setVisualization
 
Methods inherited from class prefuse.activity.Activity
addActivityListener, alwaysRunAfter, cancel, fireActivityCancelled, fireActivityFinished, fireActivityScheduled, fireActivityStarted, fireActivityStepped, getDuration, getNextTime, getPace, getPacingFunction, getStartTime, getStepTime, getStopTime, isEnabled, isRunning, isScheduled, removeActivityListener, run, runAfter, runAt, setDuration, setEnabled, setPacingFunction, setStartTime, setStepTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VisibilityAnimator

public VisibilityAnimator()
Create a new VisibilityAnimator that processes all data groups.


VisibilityAnimator

public VisibilityAnimator(java.lang.String group)
Create a new VisibilityAnimator that processes the specified group.

Parameters:
group - the data group to process.
Method Detail

run

public void run(double frac)
Description copied from class: Action
Runs this Action, triggering whatever processing this Action performs. Subclass this method to create custom Actions.

Specified by:
run in class GroupAction
Parameters:
frac - the fraction of this Action's duration that has elapsed.
See Also:
GroupAction.run(double)


Copyright © 2007 Regents of the University of California