|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectprefuse.activity.Activity
prefuse.action.Action
prefuse.action.CompositeAction
prefuse.action.ActionSwitch
The ActionSwitch selects between a set of Actions, allowing only one of a group of Actions to be executed at a time.
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 | |
ActionSwitch()
Creates an empty action switch. |
|
ActionSwitch(Action[] acts,
int switchVal)
Creates a new ActionSwitch with the given actions and switch value. |
Method Summary | |
int |
getSwitchValue()
Returns the current switch value, indicating the index of the Action that will be executed in reponse to run() invocations. |
void |
run(double frac)
Runs this Action, triggering whatever processing this Action performs. |
void |
setSwitchValue(int s)
Set the switch value. |
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 |
public ActionSwitch()
public ActionSwitch(Action[] acts, int switchVal)
acts
- the Actions to include in this switchswitchVal
- the switch value indicating which Action to runMethod Detail |
public void run(double frac)
Action
run
in class Action
frac
- the fraction of this Action's duration that has elapsed.Action.run(double)
public int getSwitchValue()
public void setSwitchValue(int s)
s
- the new switch value
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |