DrawCanvas.java (Mouse handling overview)
class MouseHandlerForDrawCanvas extends MouseAdapter
implements MouseMotionListener {
private int savedMouseX, savedMouseY;
public void mousePressed(MouseEvent e) { ... }
public void mouseDragged (MouseEvent e) { ... }
public void mouseMoved (MouseEvent e) {}
public void mouseEntered (MouseEvent e) {}
public void mouseExited (MouseEvent e) {}
public void mouseClicked (MouseEvent e) { ... }
public void mouseReleased(MouseEvent e) { ... }