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). There is no guarantee that Animation.onUpdate(double) is called
with 0.0 or 1.0.
If you need to perform setup or tear down procedures, you can override
Animation.onStart() and Animation.onComplete().void animate(CellTreeNodeView<?> node, boolean isAnimationEnabled)
CellTreeNodeView into its new state.animate in class CellTree.NodeAnimationnode - the CellTreeNodeView to animateisAnimationEnabled - true to animate