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);
}
}
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);
}
Aggregations