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