/** * It adds this <code>GraphViewController</code> listener to the * <code>giny.model.GraphPerspective</code> of the given <code>giny.view.GraphView</code> * that was temporarily "removed" by a call to <code>stopListening(GraphView)</code>, it updates * <code>graph_view</code> so that it's synchronized to its <code>GraphPerspective</code> * due to changes that may have occured while not listening. * * @see #stopListening(GraphView) */ public void resumeListening(GraphView graph_view) { GraphViewHandler handler = (GraphViewHandler) this.graphViewToHandler.get(graph_view); handler.updateGraphView(graph_view); GraphPerspective graphPerspective = graph_view.getGraphPerspective(); graphPerspective.addGraphPerspectiveChangeListener(this); } //resumeListening
gvHandler.handleGraphPerspectiveEvent(event, graphView);
/** * It adds this <code>GraphViewController</code> as a listener for * all <code>giny.model.GraphPerspective</code> that were temporarily * "removed" by calling <code>stopListening()</code>, it updates the <code>GraphViews</code> * of the <code>GraphPerspectives</code> so that they are synchronized to reflect changes that * may have occured while not listening. * * @see #stopListening() stopListening */ public void resumeListening() { GraphView[] graphViews = getGraphViews(); for (int i = 0; i < graphViews.length; i++) { GraphPerspective graphPerspective = graphViews[i].getGraphPerspective(); GraphViewHandler handler = (GraphViewHandler) this.graphViewToHandler.get(graphViews[i]); handler.updateGraphView(graphViews[i]); graphPerspective.addGraphPerspectiveChangeListener(this); } //for i } //resumeListening