/** * Stops the animation by deleting the timer and fires mxEvent.DONE. */ public void stopAnimation() { if (timer != null) { timer.stop(); timer = null; fireEvent(new mxEventObject(mxEvent.DONE)); } }
public void actionPerformed(ActionEvent e) { updateAnimation(); }
/** * */ public void stopAnimation() { graphComponent.getGraph().getView().revalidate(); super.stopAnimation(); preview = null; if (dirty != null) { graphComponent.getGraphControl().repaint(dirty.getRectangle()); } }
/** * */ public void stopAnimation() { graphComponent.getGraph().getView().revalidate(); super.stopAnimation(); preview = null; if (dirty != null) { graphComponent.getGraphControl().repaint(dirty.getRectangle()); } }
/** * Hook for subclassers to implement the animation. Invoke stopAnimation * when finished, startAnimation to resume. This is called whenever the * timer fires and fires an mxEvent.EXECUTE event with no properties. */ public void updateAnimation() { fireEvent(new mxEventObject(mxEvent.EXECUTE)); }
public void actionPerformed(ActionEvent e) { updateAnimation(); }
/** * Hook for subclassers to implement the animation. Invoke stopAnimation * when finished, startAnimation to resume. This is called whenever the * timer fires and fires an mxEvent.EXECUTE event with no properties. */ public void updateAnimation() { fireEvent(new mxEventObject(mxEvent.EXECUTE)); }
/** * 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(); } };
/** * Stops the animation by deleting the timer and fires mxEvent.DONE. */ public void stopAnimation() { if (timer != null) { timer.stop(); timer = null; fireEvent(new mxEventObject(mxEvent.DONE)); } }