prefuse.action.filter
Class VisibilityFilter
java.lang.Object
prefuse.activity.Activity
prefuse.action.Action
prefuse.action.GroupAction
prefuse.action.filter.VisibilityFilter
public class VisibilityFilter
- extends GroupAction
Filter Action that sets visible all items that meet a given Predicate
condition and sets all other items invisible.
- Author:
- jeffrey heer
Fields inherited from class prefuse.action.Action |
m_vis |
Method Summary |
void |
run(double frac)
Runs this Action, triggering whatever processing this Action performs. |
protected void |
setPredicate(Predicate p)
Set the test predicate used to determine visibility. |
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 |
VisibilityFilter
public VisibilityFilter(Predicate p)
- Create a new VisibilityFilter.
- Parameters:
p
- the test predicate used to determine visibility
VisibilityFilter
public VisibilityFilter(java.lang.String group,
Predicate p)
- Create a new VisibilityFilter.
- Parameters:
group
- the data group to processp
- the test predicate used to determine visibility
VisibilityFilter
public VisibilityFilter(Visualization vis,
java.lang.String group,
Predicate p)
- Create a new VisibilityFilter.
- Parameters:
vis
- the Visualization to processgroup
- the data group to processp
- the test predicate used to determine visibility
setPredicate
protected void setPredicate(Predicate p)
- Set the test predicate used to determine visibility.
- Parameters:
p
- the test predicate to set
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:
Action.run(double)
Copyright © 2007 Regents of the University of California