KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > batik > gvt > event > GraphicsNodeMouseListener


1 /*
2
3    Copyright 2000 The Apache Software Foundation
4
5    Licensed under the Apache License, Version 2.0 (the "License");
6    you may not use this file except in compliance with the License.
7    You may obtain a copy of the License at
8
9        http://www.apache.org/licenses/LICENSE-2.0
10
11    Unless required by applicable law or agreed to in writing, software
12    distributed under the License is distributed on an "AS IS" BASIS,
13    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14    See the License for the specific language governing permissions and
15    limitations under the License.
16
17  */

18 package org.apache.batik.gvt.event;
19
20 import java.util.EventListener JavaDoc;
21
22 /**
23  * The listener interface for receiving graphics node mouse events.
24  *
25  * @author <a HREF="mailto:Thierry.Kormann@sophia.inria.fr">Thierry Kormann</a>
26  * @version $Id: GraphicsNodeMouseListener.java,v 1.5 2005/02/22 09:13:02 cam Exp $
27  */

28 public interface GraphicsNodeMouseListener extends EventListener JavaDoc {
29
30     /**
31      * Invoked when the mouse has been clicked on a graphics node.
32      * @param evt the graphics node mouse event
33      */

34     void mouseClicked(GraphicsNodeMouseEvent evt);
35
36     /**
37      * Invoked when a mouse button has been pressed on a graphics node.
38      * @param evt the graphics node mouse event
39      */

40     void mousePressed(GraphicsNodeMouseEvent evt);
41
42     /**
43      * Invoked when a mouse button has been released on a graphics node.
44      * @param evt the graphics node mouse event
45      */

46     void mouseReleased(GraphicsNodeMouseEvent evt);
47
48     /**
49      * Invoked when the mouse enters a graphics node.
50      * @param evt the graphics node mouse event
51      */

52     void mouseEntered(GraphicsNodeMouseEvent evt);
53
54     /**
55      * Invoked when the mouse exits a graphics node.
56      * @param evt the graphics node mouse event
57      */

58     void mouseExited(GraphicsNodeMouseEvent evt);
59
60     /**
61      * Invoked when a mouse button is pressed on a graphics node and then
62      * dragged.
63      * @param evt the graphics node mouse event
64      */

65     void mouseDragged(GraphicsNodeMouseEvent evt);
66
67     /**
68      * Invoked when the mouse button has been moved on a node.
69      * @param evt the graphics node mouse event
70      */

71      void mouseMoved(GraphicsNodeMouseEvent evt);
72
73 }
74
Popular Tags