Search in sources :

Example 1 with CellAnimation

use of com.jfoenix.controls.JFXTreeView.CellAnimation in project JFoenix by jfoenixadmin.

the class JFXTreeCell method animateSibling.

private void animateSibling(int i, JFXTreeView<T> jfxTreeView) {
    if (!jfxTreeView.disableSiblings) {
        Timeline createSibAnimation = createSibAnimation(this, i);
        jfxTreeView.sibAnimationMap.put(i, new CellAnimation(this, createSibAnimation));
        jfxTreeView.trans.getChildren().add(createSibAnimation);
    }
}
Also used : Timeline(javafx.animation.Timeline) CellAnimation(com.jfoenix.controls.JFXTreeView.CellAnimation)

Example 2 with CellAnimation

use of com.jfoenix.controls.JFXTreeView.CellAnimation in project JFoenix by jfoenixadmin.

the class JFXTreeCell method animateChild.

private void animateChild(int i, JFXTreeView<T> jfxTreeView) {
    Timeline createChildAnimation = createChildAnimation(this, i - jfxTreeView.animateRow - 1);
    if (jfxTreeView.childrenAnimationMap.containsKey(i)) {
        jfxTreeView.trans.getChildren().remove(jfxTreeView.childrenAnimationMap.get(i).getAnimation());
        jfxTreeView.childrenAnimationMap.get(i).getCell().clearCellAnimation();
    }
    jfxTreeView.childrenAnimationMap.put(i, new CellAnimation(this, createChildAnimation));
    jfxTreeView.trans.getChildren().add(createChildAnimation);
}
Also used : Timeline(javafx.animation.Timeline) CellAnimation(com.jfoenix.controls.JFXTreeView.CellAnimation)

Aggregations

CellAnimation (com.jfoenix.controls.JFXTreeView.CellAnimation)2 Timeline (javafx.animation.Timeline)2