prefuse.action
Class ActionList

java.lang.Object
  extended by prefuse.activity.Activity
      extended by prefuse.action.Action
          extended by prefuse.action.CompositeAction
              extended by prefuse.action.ActionList

public class ActionList
extends CompositeAction

The ActionList represents a chain of Actions that process VisualItems. ActionList also implements the Action interface, so ActionLists can be placed within other ActionList or ActionSwitch instances, allowing recursive composition of different sets of Actions.

Author:
jeffrey heer
See Also:
Activity, Action

Field Summary
 
Fields inherited from class prefuse.action.CompositeAction
m_actions
 
Fields inherited from class prefuse.action.Action
m_vis
 
Fields inherited from class prefuse.activity.Activity
DEFAULT_STEP_TIME, INFINITY
 
Constructor Summary
ActionList()
          Creates a new run-once ActionList.
ActionList(long duration)
          Creates a new ActionList of specified duration and default step time of 20 milliseconds.
ActionList(long duration, long stepTime)
          Creates a new ActionList of specified duration and step time.
ActionList(Visualization vis)
          Creates a new run-once ActionList that processes the given Visualization.
ActionList(Visualization vis, long duration)
          Creates a new ActionList which processes the given Visualization and has the specified duration and a default step time of 20 milliseconds.
 
Method Summary
 void run(double frac)
          Runs this Action, triggering whatever processing this Action performs.
 
Methods inherited from class prefuse.action.CompositeAction
add, add, get, remove, remove, setVisualization, size
 
Methods inherited from class prefuse.action.Action
getVisualization, run
 
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

ActionList

public ActionList()
Creates a new run-once ActionList.


ActionList

public ActionList(Visualization vis)
Creates a new run-once ActionList that processes the given Visualization.

Parameters:
vis - the Visualization to process.

ActionList

public ActionList(long duration)
Creates a new ActionList of specified duration and default step time of 20 milliseconds.

Parameters:
duration - the duration of this Activity, in milliseconds

ActionList

public ActionList(Visualization vis,
                  long duration)
Creates a new ActionList which processes the given Visualization and has the specified duration and a default step time of 20 milliseconds.

Parameters:
vis - the Visualization to process.
duration - the duration of this Activity, in milliseconds

ActionList

public ActionList(long duration,
                  long stepTime)
Creates a new ActionList of specified duration and step time.

Parameters:
duration - the duration of this Activity, in milliseconds
stepTime - the time to wait in milliseconds between executions of the action list
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 Action
Parameters:
frac - the fraction of this Action's duration that has elapsed.
See Also:
Action.run(double)


Copyright 2007 Regents of the University of California