1 /*******************************************************************************
2 * Copyright (c) 2010, 2011 Ericsson
4 * All rights reserved. This program and the accompanying materials are
5 * made available under the terms of the Eclipse Public License v1.0 which
6 * accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
10 * Philippe Sawicki (INF4990.A2010@gmail.com) - Initial API and implementation
11 * Mathieu Denis (mathieu.denis55@gmail.com) - Refactored code
12 * Bernd Hufmann - Changed implemented interface to MouseTraceListener
13 *******************************************************************************/
14 package org
.eclipse
.linuxtools
.internal
.lttng
.ui
.views
.latency
.listeners
;
16 import org
.eclipse
.swt
.events
.MouseEvent
;
17 import org
.eclipse
.swt
.events
.MouseTrackListener
;
20 * <b><u>AbstractMouseListener</u></b>
22 * AbstractMouseListener, base class for the canvas mouse listener.
24 * @author Philippe Sawicki
26 public abstract class AbstractMouseTrackListener
implements MouseTrackListener
{
28 // ------------------------------------------------------------------------
30 // ------------------------------------------------------------------------
35 protected int fMouseX
;
39 protected int fMouseY
;
41 // ------------------------------------------------------------------------
43 // ------------------------------------------------------------------------
47 * @see org.eclipse.swt.events.MouseTrackListener#mouseEnter(org.eclipse.swt.events.MouseEvent)
50 public void mouseEnter(MouseEvent event
) {
55 * @see org.eclipse.swt.events.MouseTrackListener#mouseExit(org.eclipse.swt.events.MouseEvent)
58 public void mouseExit(MouseEvent event
) {
63 * @see org.eclipse.swt.events.MouseTrackListener#mouseHover(org.eclipse.swt.events.MouseEvent)
66 public void mouseHover(MouseEvent event
) {
73 * Tooltip display callback.
75 protected abstract void display();