prefuse.action.animate
Class PolarLocationAnimator
java.lang.Object
prefuse.activity.Activity
prefuse.action.Action
prefuse.action.GroupAction
prefuse.action.ItemAction
prefuse.action.animate.PolarLocationAnimator
public class PolarLocationAnimator
- extends ItemAction
Animator that interpolates between starting and ending display locations
by linearly interpolating between polar coordinates.
- Author:
- jeffrey heer
Fields inherited from class prefuse.action.Action |
m_vis |
Constructor Summary |
PolarLocationAnimator()
Creates a PolarLocationAnimator that operates on all VisualItems
within a Visualization. |
PolarLocationAnimator(java.lang.String group)
Creates a PolarLocationAnimator that operates on VisualItems
within the specified group. |
PolarLocationAnimator(java.lang.String group,
java.lang.String linearGroup)
Creates a PolarLocationAnimator that operates on VisualItems
within the specified group, while using regular linear interpolation
(in Cartesian (x,y) coordinates rather than polar coordinates) for
items also contained within the specified linearGroup. |
Method Summary |
void |
process(VisualItem item,
double frac)
Processes an individual item. |
void |
run(double frac)
Runs this Action, triggering whatever processing this Action performs. |
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 |
PolarLocationAnimator
public PolarLocationAnimator()
- Creates a PolarLocationAnimator that operates on all VisualItems
within a Visualization.
PolarLocationAnimator
public PolarLocationAnimator(java.lang.String group)
- Creates a PolarLocationAnimator that operates on VisualItems
within the specified group.
- Parameters:
group
- the data group to process
PolarLocationAnimator
public PolarLocationAnimator(java.lang.String group,
java.lang.String linearGroup)
- Creates a PolarLocationAnimator that operates on VisualItems
within the specified group, while using regular linear interpolation
(in Cartesian (x,y) coordinates rather than polar coordinates) for
items also contained within the specified linearGroup.
- Parameters:
group
- the data group to processlinearGroup
- the group of items that should be interpolated
in Cartesian (standard x,y) coordinates rather than polar coordinates.
Note that this animator will not process any items in
linearGroup
that are not also in group
.
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.
- Overrides:
run
in class ItemAction
- Parameters:
frac
- the fraction of this Action's duration that has elapsed.- See Also:
Action.run(double)
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