public void createInteraction() {
// Create a selection drag-selector on the pane
SelectionDragger selectionDragger = new SelectionDragger(graphicsPane);
SelectionModel model = new BasicSelectionModel();
SelectionInteractor s;
DragInteractor d;
// For each figure, create a selection interactor with
// a drag interactor attached to it. Set a different
// manipulator for each.
s = new SelectionInteractor(model);
s.setPrototypeDecorator(new BoundsManipulator());
d = new DragInteractor();
s.addInteractor(d);
d.setSelectiveEnabled(true);
d.setMouseFilter(new MouseFilter(1, 0, 0));
selectionDragger.addSelectionInteractor(s);
_rectangle.setInteractor(s);
s = new SelectionInteractor(model);
s.setPrototypeDecorator(new CircleManipulator());
d = new DragInteractor();
s.addInteractor(d);
d.setSelectiveEnabled(true);
d.setMouseFilter(new MouseFilter(1, 0, 0));
selectionDragger.addSelectionInteractor(s);
_circle.setInteractor(s);
s = new SelectionInteractor(model);
s.setPrototypeDecorator(new PathManipulator());
d = new DragInteractor();
s.addInteractor(d);
d.setSelectiveEnabled(true);
d.setMouseFilter(new MouseFilter(1, 0, 0));
selectionDragger.addSelectionInteractor(s);
_line.setInteractor(s);
s = new SelectionInteractor(model);
s.setPrototypeDecorator(new PathManipulator());
d = new DragInteractor();
s.addInteractor(d);
d.setSelectiveEnabled(true);
d.setMouseFilter(new MouseFilter(1, 0, 0));
selectionDragger.addSelectionInteractor(s);
_shape.setInteractor(s);
}