Ejemplo n.º 1
0
 /** Start a new drag next time the user presses the mouse */
 public void mouseReleased() {
   for (IListener canvas : listeners) {
     canvas.notifyMouseRelease();
   }
 }
Ejemplo n.º 2
0
 /** Used by the listener when user wishes to clear the screen */
 public void informClearScreen() {
   for (IListener canvas : listeners) {
     canvas.clearScreen();
   }
 }
Ejemplo n.º 3
0
 /** Listener informs the model when mouse is pressed and dragged on screen */
 public void getMouseDragged(MouseEvent e) {
   for (IListener canvas : listeners) {
     canvas.notifyMovePoints(e.getPoint());
   }
 }