public class VisibilityFilter extends GroupAction
m_group
DEFAULT_STEP_TIME, INFINITY
Constructor and Description |
---|
VisibilityFilter(Predicate p)
Create a new VisibilityFilter.
|
VisibilityFilter(java.lang.String group,
Predicate p)
Create a new VisibilityFilter.
|
VisibilityFilter(Visualization vis,
java.lang.String group,
Predicate p)
Create a new VisibilityFilter.
|
Modifier and Type | Method and Description |
---|---|
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.
|
getGroup, setGroup
getVisualization, run, setVisualization
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
public VisibilityFilter(Predicate p)
p
- the test predicate used to determine visibilitypublic VisibilityFilter(java.lang.String group, Predicate p)
group
- the data group to processp
- the test predicate used to determine visibilitypublic VisibilityFilter(Visualization vis, java.lang.String group, Predicate p)
vis
- the Visualization to processgroup
- the data group to processp
- the test predicate used to determine visibilityprotected void setPredicate(Predicate p)
p
- the test predicate to setpublic void run(double frac)
Action
run
in class GroupAction
frac
- the fraction of this Action's duration that has elapsed.Action.run(double)
Copyright ? 2013 Regents of the University of California