|
|
@@ -24,9 +24,9 @@ public class GrafikController extends MouseAdapter implements MouseMotionListene |
|
|
|
{ |
|
|
|
private GrafikView view; |
|
|
|
private GrafikModel model; |
|
|
|
private CommandInvoker invoker; |
|
|
|
private CommandControler commandController; |
|
|
|
|
|
|
|
public GrafikController(GrafikView view, GrafikModel model) |
|
|
|
public GrafikController(GrafikView view, GrafikModel model, CommandController controller_commands) |
|
|
|
{ |
|
|
|
this.view = view; |
|
|
|
this.model = model; |
|
|
@@ -37,10 +37,7 @@ public class GrafikController extends MouseAdapter implements MouseMotionListene |
|
|
|
view.addMouseMotionListener(this); |
|
|
|
view.addMouseListener(this); |
|
|
|
} |
|
|
|
public void registerCommands(){ |
|
|
|
CommandSend commandSend = new CommandSend(view); |
|
|
|
invoker.addCommand(view.getTfNachricht(), commandSend); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |