|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object prefuse.activity.Activity prefuse.action.Action prefuse.action.GroupAction prefuse.action.ItemAction
public abstract class ItemAction
An Action that processes VisualItems one item at a time. By default,
it only processes items that are visible. Use the
setFilterPredicate(Predicate)
method
to change the filtering criteria.
Field Summary | |
---|---|
protected Predicate |
m_predicate
A reference to filtering predicate for this Action |
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 | |
---|---|
ItemAction()
Create a new ItemAction that processes all groups. |
|
ItemAction(java.lang.String group)
Create a new ItemAction that processes the specified group. |
|
ItemAction(java.lang.String group,
Predicate filter)
Create a new ItemAction that processes the specified group. |
|
ItemAction(Visualization vis)
Create a new ItemAction that processes all groups. |
|
ItemAction(Visualization vis,
java.lang.String group)
Create a new ItemAction that processes the specified group. |
|
ItemAction(Visualization vis,
java.lang.String group,
Predicate filter)
Create a new ItemAction that processes the specified group. |
Method Summary | |
---|---|
Predicate |
getFilterPredicate()
Returns the filtering predicate used by this Action. |
abstract void |
process(VisualItem item,
double frac)
Processes an individual item. |
void |
run(double frac)
Runs this Action, triggering whatever processing this Action performs. |
void |
setFilterPredicate(Predicate filter)
Sets the filtering predicate used by this Action. |
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 |
Field Detail |
---|
protected Predicate m_predicate
Constructor Detail |
---|
public ItemAction()
Visualization.ALL_ITEMS
public ItemAction(Visualization vis)
vis
- the Visualization
to processVisualization.ALL_ITEMS
public ItemAction(java.lang.String group)
group
- the name of the group to processpublic ItemAction(java.lang.String group, Predicate filter)
group
- the name of the group to processfilter
- the filtering Predicate
public ItemAction(Visualization vis, java.lang.String group)
vis
- the Visualization
to processgroup
- the name of the group to processpublic ItemAction(Visualization vis, java.lang.String group, Predicate filter)
vis
- the Visualization
to processgroup
- the name of the group to processfilter
- the filtering Predicate
Method Detail |
---|
public Predicate getFilterPredicate()
Predicate
public void setFilterPredicate(Predicate filter)
filter
- the filtering Predicate
to usepublic void run(double frac)
Action
run
in class GroupAction
frac
- the fraction of this Action's duration that has elapsed.Action.run(double)
public abstract void process(VisualItem item, double frac)
item
- the VisualItem to processfrac
- the fraction of elapsed duration time
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |