* This initialization cannot be done in the constructor because
* the controller does not yet have a reference to its pane
* at that time.
*/
protected void initializeInteraction() {
GraphPane pane = getGraphPane();
// Create and set up the selection dragger
_selectionDragger = new SelectionDragger(pane);
_selectionDragger.addSelectionModel(getSelectionModel());
// Create a listener that creates new nodes
_nodeCreator = new NodeCreator();
_nodeCreator.setMouseFilter(_controlFilter);
pane.getBackgroundEventLayer().addInteractor(_nodeCreator);
// Create the interactor that drags new edges.
_edgeCreator = new EdgeCreator(this) {
public Object createEdge() {
Object semanticObject = Integer.valueOf(_globalCount++);