SelectionInteractor interactor = (SelectionInteractor) getEdgeInteractor();
interactor.setSelectionModel(sm);
// Create and set up the manipulator for connectors.
// This overrides the manipulator created by the base class.
ConnectorManipulator manipulator = new ArcManipulator();
manipulator.setSnapHalo(4.0);
manipulator.addConnectorListener(new LinkDropper());
interactor.setPrototypeDecorator(manipulator);
// The mouse filter needs to accept regular click or control click
MouseFilter handleFilter = new MouseFilter(1, 0, 0);
manipulator.setHandleFilter(handleFilter);
ConnectorTarget ct = new LinkTarget();
setConnectorTarget(ct);
setEdgeRenderer(new LinkRenderer());