mxGraphControl graphControl = graphComponent.getGraphControl();
graphControl.addMouseListener(this);
graphControl.addMouseMotionListener(this);
mxGraphView view = graphComponent.getGraph().getView();
view.addListener(mxEvent.SCALE, resetHandler);
view.addListener(mxEvent.TRANSLATE, resetHandler);
view.addListener(mxEvent.SCALE_AND_TRANSLATE, resetHandler);
mxIGraphModel model = graphComponent.getGraph().getModel();
model.addListener(mxEvent.CHANGE, resetHandler);