01: /*******************************************************************************
02: * Copyright (c) 2000, 2004 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.swt.events;
11:
12: /**
13: * This adapter class provides default implementations for the
14: * methods described by the <code>MouseTrackListener</code> interface.
15: * <p>
16: * Classes that wish to deal with <code>MouseEvent</code>s which
17: * occur as the mouse pointer passes (or hovers) over controls can
18: * extend this class and override only the methods which they are
19: * interested in.
20: * </p>
21: *
22: * @see MouseTrackListener
23: * @see MouseEvent
24: */
25: public abstract class MouseTrackAdapter implements MouseTrackListener {
26:
27: /**
28: * Sent when the mouse pointer passes into the area of
29: * the screen covered by a control.
30: * The default behavior is to do nothing.
31: *
32: * @param e an event containing information about the mouse enter
33: */
34: public void mouseEnter(MouseEvent e) {
35: }
36:
37: /**
38: * Sent when the mouse pointer passes out of the area of
39: * the screen covered by a control.
40: * The default behavior is to do nothing.
41: *
42: * @param e an event containing information about the mouse exit
43: */
44: public void mouseExit(MouseEvent e) {
45: }
46:
47: /**
48: * Sent when the mouse pointer hovers (that is, stops moving
49: * for an (operating system specified) period of time) over
50: * a control.
51: * The default behavior is to do nothing.
52: *
53: * @param e an event containing information about the hover
54: */
55: public void mouseHover(MouseEvent e) {
56: }
57: }
|