1 /*******************************************************************************
2 * Copyright (c) 2000, 2016 IBM Corporation and others.
4 * This program and the accompanying materials
5 * are made available under the terms of the Eclipse Public License 2.0
6 * which accompanies this distribution, and is available at
7 * https://www.eclipse.org/legal/epl-2.0/
9 * SPDX-License-Identifier: EPL-2.0
12 * IBM Corporation - initial API and implementation
13 *******************************************************************************/
14 package org.eclipse.swt.events;
18 * This adapter class provides default implementations for the
19 * methods described by the <code>MouseListener</code> interface.
21 * Classes that wish to deal with <code>MouseEvent</code>s
22 * which occur as mouse buttons are pressed and released can
23 * extend this class and override only the methods which they are
29 * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a>
31 public abstract class MouseAdapter implements MouseListener {
34 * Sent when a mouse button is pressed twice within the
35 * (operating system specified) double click period.
36 * The default behavior is to do nothing.
38 * @param e an event containing information about the mouse double click
40 * @see org.eclipse.swt.widgets.Display#getDoubleClickTime()
43 public void mouseDoubleClick(MouseEvent e) {
47 * Sent when a mouse button is pressed.
48 * The default behavior is to do nothing.
50 * @param e an event containing information about the mouse button press
53 public void mouseDown(MouseEvent e) {
57 * Sent when a mouse button is released.
58 * The default behavior is to do nothing.
60 * @param e an event containing information about the mouse button release
63 public void mouseUp(MouseEvent e) {