public class TableAnimation extends Object implements IAnimation
| Constructor and Description |
|---|
TableAnimation(ITable table,
double[] columnLayout,
double[] rowLayout)
Initializes a new instance of the
TableAnimation class for the given table, the column widths, and row heights. |
| Modifier and Type | Method and Description |
|---|---|
void |
animate(double time)
Does the animation according to the relative animation time.
|
void |
cleanup()
Cleans up after an animation has finished.
|
protected IAnimation |
createStripeAnimation(IStripe stripe,
double targetSize)
Create the animation for a single
IStripe. |
Duration |
getPreferredDuration()
Gets the preferred duration of the animation.
|
void |
initialize()
Initializes the animation.
|
void |
setPreferredDuration(Duration value)
Sets the preferred duration of the animation.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateEasedAnimation, createEasedAnimation, createEasedAnimation, createEdgeSegmentAnimation, createGraphAnimation, createLabelAnimation, createNodeAnimation, createParallelAnimation, createParallelAnimation, createParallelAnimation, createParallelAnimation, createParallelAnimation, createPathAnimation, createPortAnimation, createTableAnimationpublic TableAnimation(ITable table, double[] columnLayout, double[] rowLayout)
TableAnimation class for the given table, the column widths, and row heights.
Note that only the sizes of leaf stripes, i.e. those without child stripes, are considered. The sizes of a stripe with children is implicitly determined by its contents.
table - The table to animate.columnLayout - The sizes of the leaf columns, in natural order.rowLayout - The sizes of the leaf rows, in natural order.public void animate(double time)
IAnimationThe animation starts with the time 0 and ends with time 1.
animate in interface IAnimationtime - the animation time [0,1]public void cleanup()
IAnimationcleanup in interface IAnimationprotected IAnimation createStripeAnimation(IStripe stripe, double targetSize)
IStripe.stripe - The stripetargetSize - The target size of the stripepublic final Duration getPreferredDuration()
getPreferredDuration in interface IAnimationsetPreferredDuration(Duration)public void initialize()
IAnimation
Call this method once before subsequent calls to IAnimation.animate(double).
initialize in interface IAnimationpublic final void setPreferredDuration(Duration value)
value - The PreferredDuration to set.getPreferredDuration()