public class ColorAnimator extends ItemAction
stroke color
,
fill color
, and
text color
.m_predicate
m_group
DEFAULT_STEP_TIME, INFINITY
Constructor and Description |
---|
ColorAnimator()
Create a new ColorAnimator that processes all data groups.
|
ColorAnimator(java.lang.String group)
Create a new ColorAnimator that processes the specified group.
|
ColorAnimator(java.lang.String group,
java.lang.String field)
Create a new ColorAnimator that processes the specified group and
color field.
|
ColorAnimator(java.lang.String group,
java.lang.String[] fields)
Create a new ColorAnimator that processes the specified group and
color fields.
|
Modifier and Type | Method and Description |
---|---|
void |
process(VisualItem item,
double frac)
Processes an individual item.
|
void |
setColorFields(java.lang.String[] fields)
Sets the color fields to interpolate.
|
getFilterPredicate, run, setFilterPredicate
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 ColorAnimator()
public ColorAnimator(java.lang.String group)
group
- the data group to processpublic ColorAnimator(java.lang.String group, java.lang.String field)
group
- the data group to processfield
- the color field to interpolatepublic ColorAnimator(java.lang.String group, java.lang.String[] fields)
group
- the data group to processfields
- the color fields to interpolatepublic void setColorFields(java.lang.String[] fields)
fields
- the color fields to interpolatepublic void process(VisualItem item, double frac)
ItemAction
process
in class ItemAction
item
- the VisualItem to processfrac
- the fraction of elapsed duration timeItemAction.process(prefuse.visual.VisualItem, double)
Copyright ? 2013 Regents of the University of California