/** * Animation step. */ public void updateAnimation() { preview = new mxCellStatePreview(graphComponent, false); if (cells != null) { // Animates the given cells individually without recursion for (Object cell : cells) { animateCell(cell, preview, false); } } else { // Animates all changed cells by using recursion to find // the changed cells but not for the animation itself Object root = graphComponent.getGraph().getModel().getRoot(); animateCell(root, preview, true); } show(preview); if (preview.isEmpty() || step++ >= steps) { stopAnimation(); } };
/** * Animation step. */ public void updateAnimation() { super.updateAnimation(); preview = new mxCellStatePreview(graphComponent, false); if (cells != null) { // Animates the given cells individually without recursion for (Object cell : cells) { animateCell(cell, preview, false); } } else { // Animates all changed cells by using recursion to find // the changed cells but not for the animation itself Object root = graphComponent.getGraph().getModel().getRoot(); animateCell(root, preview, true); } show(preview); if (preview.isEmpty() || step++ >= steps) { stopAnimation(); } };
animateCell(graph.getModel().getChildAt(cell, i), move, recurse);
animateCell(graph.getModel().getChildAt(cell, i), move, recurse);