KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > javax > swing > event > MouseInputAdapter


1 /*
2  * @(#)MouseInputAdapter.java 1.12 03/12/19
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package javax.swing.event;
9
10 import java.awt.event.MouseEvent JavaDoc;
11
12 /**
13  * The adapter which receives mouse events and mouse motion events.
14  * The methods in this class are empty; this class is provided as a
15  * convenience for easily creating listeners by extending this class
16  * and overriding only the methods of interest.
17  *
18  * @version 1.12 12/19/03
19  * @author Philip Milne
20  */

21 public abstract class MouseInputAdapter implements MouseInputListener JavaDoc {
22
23 // The MouseListener methods
24

25     // implements java.awt.event.MouseListener
26
public void mouseClicked(MouseEvent JavaDoc e) {}
27     // implements java.awt.event.MouseListener
28
public void mousePressed(MouseEvent JavaDoc e) {}
29     // implements java.awt.event.MouseListener
30
public void mouseReleased(MouseEvent JavaDoc e) {}
31     // implements java.awt.event.MouseListener
32
public void mouseEntered(MouseEvent JavaDoc e) {}
33     // implements java.awt.event.MouseListener
34
public void mouseExited(MouseEvent JavaDoc e) {}
35
36 // The MouseMotionListener methods
37

38     // implements java.awt.event.MouseMotionListener
39
public void mouseDragged(MouseEvent JavaDoc e) {}
40     // implements java.awt.event.MouseMotionListener
41
public void mouseMoved(MouseEvent JavaDoc e) {}
42 }
43
Popular Tags