]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.eclipse.swt.win32.win32.x86_64/src/org/eclipse/swt/events/MouseAdapter.java
Remove invalid SHA-256-Digests
[simantics/platform.git] / bundles / org.eclipse.swt.win32.win32.x86_64 / src / org / eclipse / swt / events / MouseAdapter.java
1 /*******************************************************************************
2  * Copyright (c) 2000, 2016 IBM Corporation and others.
3  *
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/
8  *
9  * SPDX-License-Identifier: EPL-2.0
10  *
11  * Contributors:
12  *     IBM Corporation - initial API and implementation
13  *******************************************************************************/
14 package org.eclipse.swt.events;
15
16
17 /**
18  * This adapter class provides default implementations for the
19  * methods described by the <code>MouseListener</code> interface.
20  * <p>
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
24  * interested in.
25  * </p>
26  *
27  * @see MouseListener
28  * @see MouseEvent
29  * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a>
30  */
31 public abstract class MouseAdapter implements MouseListener {
32
33 /**
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.
37  *
38  * @param e an event containing information about the mouse double click
39  *
40  * @see org.eclipse.swt.widgets.Display#getDoubleClickTime()
41  */
42 @Override
43 public void mouseDoubleClick(MouseEvent e) {
44 }
45
46 /**
47  * Sent when a mouse button is pressed.
48  * The default behavior is to do nothing.
49  *
50  * @param e an event containing information about the mouse button press
51  */
52 @Override
53 public void mouseDown(MouseEvent e) {
54 }
55
56 /**
57  * Sent when a mouse button is released.
58  * The default behavior is to do nothing.
59  *
60  * @param e an event containing information about the mouse button release
61  */
62 @Override
63 public void mouseUp(MouseEvent e) {
64 }
65 }