diff options
Diffstat (limited to 'src/main/java/com/c2kernel/gui/graph/view/EditorPanel.java')
| -rw-r--r-- | src/main/java/com/c2kernel/gui/graph/view/EditorPanel.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/c2kernel/gui/graph/view/EditorPanel.java b/src/main/java/com/c2kernel/gui/graph/view/EditorPanel.java index 1feb691..a27482d 100644 --- a/src/main/java/com/c2kernel/gui/graph/view/EditorPanel.java +++ b/src/main/java/com/c2kernel/gui/graph/view/EditorPanel.java @@ -23,7 +23,7 @@ public class EditorPanel extends JPanel public GraphPanel mGraphPanel = null;
protected JScrollPane mGraphScrollPane = null;
// Graph Controllers
- protected MultiSelectionDragController mMultiSelectionDragController = new MultiSelectionDragController();
+ protected MultiSelectionDragController mMultiSelectionDragController;
protected VertexConstructionController mVertexConstructionController = new VertexConstructionController();
protected EdgeConstructionController mEdgeConstructionController = new EdgeConstructionController();
protected AutoScrollController mAutoScrollController = new AutoScrollController();
@@ -56,7 +56,7 @@ public class EditorPanel extends JPanel mGraphModelManager.addObserver(mGraphPanel);
// The multi selection drag controller modifies the graph model
// and listens to the graph panel and editor tool bar
- mMultiSelectionDragController.setGraphModelManager(mGraphModelManager);
+ mMultiSelectionDragController = new MultiSelectionDragController(mGraphModelManager, mGraphPanel);
mGraphPanel.addMouseListener(mMultiSelectionDragController);
mGraphPanel.addMouseMotionListener(mMultiSelectionDragController);
mGraphPanel.addKeyListener(mMultiSelectionDragController);
|
