UndoRedoHandler undoredohandler = new UndoRedoHandler();
undoredohandler.addIUndoListener(this);
// connect the Renderer to the Hub
this.hub = new ControllerHub(controllerModel, renderer, chemModel,
this, undoredohandler, new SwingUndoRedoFactory(), isViewer, applet);
pbg.setControllerHub(hub);
pag.setControllerHub(hub);
ptg.setControllerHub(hub);
// connect mouse events from Panel to the Hub