prefuse.action.animate
Class ColorAnimator
java.lang.Object
prefuse.activity.Activity
prefuse.action.Action
prefuse.action.GroupAction
prefuse.action.ItemAction
prefuse.action.animate.ColorAnimator
public class ColorAnimator
- extends ItemAction
Animator that linearly interpolates between starting and ending colors
for VisualItems during an animation. By default, interpolates the three
primary color fields: stroke color
,
fill color
, and
text color
.
- Author:
- jeffrey heer
Fields inherited from class prefuse.action.Action |
m_vis |
Constructor Summary |
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. |
Method Summary |
void |
process(VisualItem item,
double frac)
Processes an individual item. |
void |
setColorFields(java.lang.String[] fields)
Sets the color fields to interpolate. |
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 |
ColorAnimator
public ColorAnimator()
- Create a new ColorAnimator that processes all data groups.
ColorAnimator
public ColorAnimator(java.lang.String group)
- Create a new ColorAnimator that processes the specified group.
- Parameters:
group
- the data group to process
ColorAnimator
public ColorAnimator(java.lang.String group,
java.lang.String field)
- Create a new ColorAnimator that processes the specified group and
color field.
- Parameters:
group
- the data group to processfield
- the color field to interpolate
ColorAnimator
public ColorAnimator(java.lang.String group,
java.lang.String[] fields)
- Create a new ColorAnimator that processes the specified group and
color fields.
- Parameters:
group
- the data group to processfields
- the color fields to interpolate
setColorFields
public void setColorFields(java.lang.String[] fields)
- Sets the color fields to interpolate.
- Parameters:
fields
- the color fields to interpolate
process
public void process(VisualItem item,
double frac)
- Description copied from class:
ItemAction
- Processes an individual item.
- Specified by:
process
in class ItemAction
- Parameters:
item
- the VisualItem to processfrac
- the fraction of elapsed duration time- See Also:
ItemAction.process(prefuse.visual.VisualItem, double)
Copyright © 2007 Regents of the University of California