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.
m_actionsDEFAULT_STEP_TIME, INFINITY| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
void |
run(double frac)
Runs this Action, triggering whatever processing this Action performs.
|
add, add, get, remove, remove, setVisualization, sizegetVisualization, runaddActivityListener, 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, setStepTimepublic ActionList()
public ActionList(Visualization vis)
vis - the Visualization to process.public ActionList(long duration)
duration - the duration of this Activity, in millisecondspublic ActionList(Visualization vis, long duration)
vis - the Visualization to process.duration - the duration of this Activity, in millisecondspublic ActionList(long duration,
long stepTime)
duration - the duration of this Activity, in millisecondsstepTime - the time to wait in milliseconds between executions
of the action listpublic void run(double frac)
Actionrun in class Actionfrac - the fraction of this Action's duration that has elapsed.Action.run(double)