public static class CellTree.RevealAnimation extends CellTree.NodeAnimation
CellTree.NodeAnimation that reveals the contents of child nodes.| Modifier and Type | Field and Description |
|---|---|
(package private) Element |
contentContainer
The container that holds the content, includind the children.
|
(package private) int |
height
The target height when opening, the start height when closing.
|
(package private) boolean |
opening
True if the node is opening, false if closing.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
animate(CellTreeNodeView<?> node,
boolean isAnimationEnabled)
Animate a
CellTreeNodeView into its new state. |
static CellTree.RevealAnimation |
create()
Create a new
CellTree.RevealAnimation. |
protected void |
onComplete()
Called immediately after the animation completes.
|
protected void |
onStart()
Called immediately before the animation starts.
|
protected void |
onUpdate(double progress)
Called when the animation should be updated.
|
getDuration, setDurationElement contentContainer
int height
boolean opening
public static CellTree.RevealAnimation create()
CellTree.RevealAnimation.protected void onComplete()
AnimationonComplete in class Animationprotected void onStart()
Animationprotected void onUpdate(double progress)
AnimationAnimation.interpolate(double) method to provide a wider range
of values). You can override Animation.onStart() and Animation.onComplete()
to perform setup and tear down procedures.void animate(CellTreeNodeView<?> node, boolean isAnimationEnabled)
CellTreeNodeView into its new state.animate in class CellTree.NodeAnimationnode - the CellTreeNodeView to animateisAnimationEnabled - true to animate