diff org.eclipse.draw2d/src/org/eclipse/draw2d/MouseMotionListener.d @ 12:bc29606a740c

Added dwt-addons in original directory structure of eclipse.org
author Frank Benoit <benoit@tionex.de>
date Sat, 14 Mar 2009 18:23:29 +0100
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/org.eclipse.draw2d/src/org/eclipse/draw2d/MouseMotionListener.d	Sat Mar 14 18:23:29 2009 +0100
@@ -0,0 +1,80 @@
+/*******************************************************************************
+ * Copyright (c) 2000, 2005 IBM Corporation and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ *     IBM Corporation - initial API and implementation
+ *******************************************************************************/
+module org.eclipse.draw2d.MouseMotionListener;
+
+import java.lang.all;
+import org.eclipse.draw2d.MouseEvent;
+/**
+ * A listener interface for receiving mouse motion events.
+ */
+public interface MouseMotionListener {
+
+/**
+ * Called when the mouse has moved over the listened to object while a button was pressed.
+ * @param me The MouseEvent object
+ */
+void mouseDragged(MouseEvent me);
+
+/**
+ * Called when the mouse has entered the listened to object.
+ * @param me The MouseEvent object
+ */
+void mouseEntered(MouseEvent me);
+
+/**
+ * Called when the mouse has exited the listened to object.
+ * @param me The MouseEvent object
+ */
+void mouseExited(MouseEvent me);
+
+/**
+ * Called when the mouse hovers over the listened to object.
+ * @param me The MouseEvent object
+ */
+void mouseHover(MouseEvent me);
+
+/**
+ * Called when the mouse has moved over the listened to object.
+ * @param me The MouseEvent object
+ */
+void mouseMoved(MouseEvent me);
+
+/**
+ * An empty implementation of MouseMotionListener for convenience.
+ */
+static public class Stub
+    : MouseMotionListener
+{
+    /**
+     * @see org.eclipse.draw2d.MouseMotionListener#mouseDragged(MouseEvent)
+     */
+    public void mouseDragged(MouseEvent me) { }
+    /**
+     * @see org.eclipse.draw2d.MouseMotionListener#mouseEntered(MouseEvent)
+     */
+    public void mouseEntered(MouseEvent me) { }
+    /**
+     * @see org.eclipse.draw2d.MouseMotionListener#mouseExited(MouseEvent)
+     */
+    public void mouseExited(MouseEvent me) { }
+    /**
+     * @see org.eclipse.draw2d.MouseMotionListener#mouseMoved(MouseEvent)
+     */
+    public void mouseMoved(MouseEvent me) { }
+    /**
+     * @see org.eclipse.draw2d.MouseMotionListener#mouseHover(MouseEvent)
+     */
+    public void mouseHover(MouseEvent me) { }
+}
+
+}
+
+