KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > fractal > gui > graph > view > GraphViewListener


1 /***
2  * FractalGUI: a graphical tool to edit Fractal component configurations.
3  * Copyright (C) 2003 France Telecom R&D
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18  *
19  * Contact: fractal@objectweb.org
20  *
21  * Authors: Eric Bruneton, Patrice Fauvel
22  */

23
24 package org.objectweb.fractal.gui.graph.view;
25
26 import java.awt.event.MouseEvent JavaDoc;
27
28 /**
29  * An interface to be notified of events emitted by a graph view component.
30  */

31
32 public interface GraphViewListener {
33
34   /**
35    * Notifies this listener that the model represented by the view has changed.
36    */

37
38   void viewChanged ();
39
40   /**
41    * Notifies this listener that the mouse has been pressed.
42    *
43    * @param e a mouse pressed mouse event.
44    * @param p the component part corresponding to the event's coordinates.
45    */

46
47   void mousePressed (MouseEvent JavaDoc e, ComponentPart p);
48
49   /**
50    * Notifies this listener that the mouse has been released.
51    *
52    * @param e a mouse released mouse event.
53    * @param p the component part corresponding to the event's coordinates.
54    */

55
56   void mouseReleased (MouseEvent JavaDoc e, ComponentPart p);
57
58   /**
59    * Notifies this listener that the mouse has been clicked.
60    *
61    * @param e a mouse clicke mouse event.
62    * @param p the component part corresponding to the event's coordinates.
63    */

64
65   void mouseClicked (MouseEvent JavaDoc e, ComponentPart p);
66
67   /**
68    * Notifies this listener that the mouse has entered the graph view.
69    *
70    * @param e a mouse entered mouse event.
71    */

72
73   void mouseEntered (MouseEvent JavaDoc e);
74
75   /**
76    * Notifies this listener that the mouse has exited the graph view.
77    *
78    * @param e a mouse exited mouse event.
79    */

80
81   void mouseExited (MouseEvent JavaDoc e);
82
83   /**
84    * Notifies this listener that the mouse has been dragged in the graph view.
85    *
86    * @param e a mouse dragged mouse event.
87    */

88
89   void mouseDragged (MouseEvent JavaDoc e);
90
91   /**
92    * Notifies this listener that the mouse has mouved in the graph view.
93    *
94    * @param e a mouse moved mouse event.
95    * @param p the component part corresponding to the event's coordinates.
96    */

97
98   void mouseMoved (MouseEvent JavaDoc e, ComponentPart p);
99 }
100
Popular Tags