src/main/java/com/mxgraph/swing/handler/mxConnectionHandler.java
protected void addGraphListeners(mxGraph graph)
	{
		// LATER: Install change listener for graph model, view
		if (graph != null)
		{
			mxGraphView view = graph.getView();
			view.addListener(mxEvent.SCALE, resetHandler);
			view.addListener(mxEvent.TRANSLATE, resetHandler);
			view.addListener(mxEvent.SCALE_AND_TRANSLATE, resetHandler);

			graph.getModel().addListener(mxEvent.CHANGE, resetHandler);
		}
	}
/**
	 * Installs the listeners to update the handles after any changes.
	 */
Installs the listeners to update the handles after any changes.
Installs the listeners to update the handles after any changes .
protected void addGraphListeners(mxGraph graph)
	{
		if (graph != null)
		{
			mxGraphView view = graph.getView();
			view.addListener(mxEvent.SCALE, resetHandler);
			view.addListener(mxEvent.TRANSLATE, resetHandler);
			view.addListener(mxEvent.SCALE_AND_TRANSLATE, resetHandler);
			graph.getModel().addListener(mxEvent.CHANGE, resetHandler);
		}
	}
protected void addGraphListeners ( mxGraph graph ) { if ( graph != null ) { mxGraphView view = graph . getView ( ) ; view . addListener ( mxEvent . SCALE , resetHandler ) ; view . addListener ( mxEvent . TRANSLATE , resetHandler ) ; view . addListener ( mxEvent . SCALE_AND_TRANSLATE , resetHandler ) ; graph . getModel ( ) . addListener ( mxEvent . CHANGE , resetHandler ) ; } }
Installs the listeners to update the handles after any changes.
Installs the listeners to update the handles after any changes .
// LATER: Install change listener for graph model, view