--- /dev/null
+/*******************************************************************************\r
+ * Copyright (c) 2007, 2010 Association for Decentralized Information Management\r
+ * in Industry THTH ry.\r
+ * All rights reserved. This program and the accompanying materials\r
+ * are made available under the terms of the Eclipse Public License v1.0\r
+ * which accompanies this distribution, and is available at\r
+ * http://www.eclipse.org/legal/epl-v10.html\r
+ *\r
+ * Contributors:\r
+ * VTT Technical Research Centre of Finland - initial API and implementation\r
+ *******************************************************************************/\r
+/*\r
+ *\r
+ * @author Toni Kalajainen\r
+ */\r
+package org.simantics.g2d.dnd;\r
+\r
+import java.awt.dnd.DropTargetDragEvent;\r
+import java.awt.dnd.DropTargetDropEvent;\r
+import java.awt.dnd.DropTargetEvent;\r
+\r
+import org.simantics.g2d.canvas.ICanvasParticipant;\r
+\r
+/**\r
+ * IDropParticipant is an interface for taking part of a DnD event. \r
+ * {@link IDnDContext} is a context used during the life cycle of the event.\r
+ * \r
+ * IDnDParticipant implementations require {@link DropInteractor}. \r
+ *\r
+ * @author Toni Kalajainen <toni.kalajainen@vtt.fi>\r
+ */\r
+public interface IDropTargetParticipant extends ICanvasParticipant {\r
+\r
+ void dragEnter(DropTargetDragEvent dtde, IDnDContext dp);\r
+ \r
+ void dragExit(DropTargetEvent dte, IDnDContext dp);\r
+\r
+ void dragOver(DropTargetDragEvent dtde, IDnDContext dp);\r
+\r
+ void drop(DropTargetDropEvent dtde, IDnDContext dp);\r
+ \r
+ void dropActionChanged(DropTargetDragEvent dtde, IDnDContext dp);\r
+ \r
+ /**\r
+ * Get allowed ops (See DnDConstants)\r
+ * @return\r
+ */\r
+ int getAllowedOps();\r
+ \r
+ double getPriority();\r
+ \r
+}\r