KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > batik > swing > gvt > InteractorAdapter


1 /*
2
3    Copyright 2001 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.swing.gvt;
19
20 import java.awt.event.InputEvent JavaDoc;
21 import java.awt.event.KeyEvent JavaDoc;
22 import java.awt.event.MouseEvent JavaDoc;
23
24 /**
25  * This class represents an interactor which never interacts.
26  *
27  * @author <a HREF="mailto:stephane@hillion.org">Stephane Hillion</a>
28  * @version $Id: InteractorAdapter.java,v 1.3 2004/08/18 07:15:32 vhardy Exp $
29  */

30 public class InteractorAdapter implements Interactor {
31     
32     /**
33      * Tells whether the given event will start the interactor.
34      */

35     public boolean startInteraction(InputEvent JavaDoc ie) {
36         return false;
37     }
38
39     /**
40      * Tells whether the interaction has finished.
41      */

42     public boolean endInteraction() {
43         return false;
44     }
45
46     // KeyListener //////////////////////////////////////////////////////////
47

48     /**
49      * Invoked when a key has been typed.
50      * This event occurs when a key press is followed by a key release.
51      */

52     public void keyTyped(KeyEvent JavaDoc e) {
53     }
54         
55     /**
56      * Invoked when a key has been pressed.
57      */

58     public void keyPressed(KeyEvent JavaDoc e) {
59     }
60
61     /**
62      * Invoked when a key has been released.
63      */

64     public void keyReleased(KeyEvent JavaDoc e) {
65     }
66
67     // MouseListener ///////////////////////////////////////////////////////
68

69     /**
70      * Invoked when the mouse has been clicked on a component.
71      */

72     public void mouseClicked(MouseEvent JavaDoc e) {
73     }
74
75     /**
76      * Invoked when a mouse button has been pressed on a component.
77      */

78     public void mousePressed(MouseEvent JavaDoc e) {
79     }
80
81     /**
82      * Invoked when a mouse button has been released on a component.
83      */

84     public void mouseReleased(MouseEvent JavaDoc e) {
85     }
86
87     /**
88      * Invoked when the mouse enters a component.
89      */

90     public void mouseEntered(MouseEvent JavaDoc e) {
91     }
92
93     /**
94      * Invoked when the mouse exits a component.
95      */

96     public void mouseExited(MouseEvent JavaDoc e) {
97
98     }
99
100     // MouseMotionListener /////////////////////////////////////////////////
101

102     /**
103      * Invoked when a mouse button is pressed on a component and then
104      * dragged. Mouse drag events will continue to be delivered to
105      * the component where the first originated until the mouse button is
106      * released (regardless of whether the mouse position is within the
107      * bounds of the component).
108      */

109     public void mouseDragged(MouseEvent JavaDoc e) {
110     }
111
112     /**
113      * Invoked when the mouse button has been moved on a component
114      * (with no buttons no down).
115      */

116     public void mouseMoved(MouseEvent JavaDoc e) {
117     }
118 }
119
Popular Tags