/** Start a new drag next time the user presses the mouse */ public void mouseReleased() { for (IListener canvas : listeners) { canvas.notifyMouseRelease(); } }
/** Used by the listener when user wishes to clear the screen */ public void informClearScreen() { for (IListener canvas : listeners) { canvas.clearScreen(); } }
/** 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()); } }