Parent parent = node.getParent();
if (parent == null || !(parent instanceof Pane)) {
return;
}
ImageView imm = new ImageView(getImage("arrow_right_24.png"));
((Pane) parent).getChildren().add(imm);
switch (pos) {
case LEFT: {
imm.setLayoutX(node.getLayoutX() - 30);
imm.setLayoutY(node.getLayoutY());
horizontalTransition(imm, node.getLayoutX() - 500, 0.0, 1600).play();
fadeIn(imm, 3500).play();
break;
}
case RIGHT: {
imm.setLayoutX(node.getLayoutX() + node.getLayoutBounds().getWidth() + 5);
imm.setLayoutY(node.getLayoutY() + 2);
horizontalTransition(imm, node.getLayoutX() + 500, 0.0, 1600).play();
fadeIn(imm, 4500).play();
break;
}
}