]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scenegraph/src/org/simantics/scenegraph/g2d/events/IEventQueue.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.scenegraph / src / org / simantics / scenegraph / g2d / events / IEventQueue.java
index a0874b0f4c696236630262188ad5d0702e8cac6f..bbdbac613d1c76405cc43832a0c375cc9e1391d1 100644 (file)
@@ -1,73 +1,73 @@
-/*******************************************************************************\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.scenegraph.g2d.events;\r
-\r
-import org.simantics.utils.threads.IThreadWorkQueue;\r
-\r
-/**\r
- * \r
- * @see MouseEventCoalescer\r
- * @see EventQueue Default implementation\r
- * @author Toni Kalajainen\r
- */\r
-public interface IEventQueue {\r
-\r
-    /**\r
-     * queues event\r
-     * \r
-     * @param e\r
-     */\r
-    void queueEvent(Event e);\r
-\r
-    /**\r
-     * Queue event as next to be processed\r
-     * \r
-     * @param e\r
-     */\r
-    void queueFirst(Event e);\r
-\r
-    boolean isEmpty();\r
-\r
-    int size();\r
-\r
-    void addEventCoalesceler(EventCoalescer coalescaler);\r
-    void removeEventCoalesceler(EventCoalescer coalescaler);\r
-\r
-    void addQueueListener(IEventQueueListener listener);\r
-    void removeQueueListener(IEventQueueListener listener);\r
-    void addQueueListener(IEventQueueListener listener, IThreadWorkQueue thread);\r
-    void removeQueueListener(IEventQueueListener listener, IThreadWorkQueue thread);\r
-\r
-    /**\r
-     * Coalesces mouse events.\r
-     */\r
-    public interface EventCoalescer {\r
-        /**\r
-         * \r
-         * @param apriori\r
-         * @param aposterior\r
-         * @return coalesced event of the two or <code>null</code> if the two\r
-         *         events cannot be coalesced\r
-         */\r
-        Event coalesce(Event apriori, Event aposterior);\r
-    }\r
-\r
-    public interface IEventQueueListener {\r
-        void onEventAdded(IEventQueue queue, Event e, int index);\r
-        void onQueueEmpty(IEventQueue queue);\r
-    }\r
-\r
-}\r
+/*******************************************************************************
+ * Copyright (c) 2007, 2010 Association for Decentralized Information Management
+ * in Industry THTH ry.
+ * 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:
+ *     VTT Technical Research Centre of Finland - initial API and implementation
+ *******************************************************************************/
+/*
+ *
+ * @author Toni Kalajainen
+ */
+package org.simantics.scenegraph.g2d.events;
+
+import org.simantics.utils.threads.IThreadWorkQueue;
+
+/**
+ * 
+ * @see MouseEventCoalescer
+ * @see EventQueue Default implementation
+ * @author Toni Kalajainen
+ */
+public interface IEventQueue {
+
+    /**
+     * queues event
+     * 
+     * @param e
+     */
+    void queueEvent(Event e);
+
+    /**
+     * Queue event as next to be processed
+     * 
+     * @param e
+     */
+    void queueFirst(Event e);
+
+    boolean isEmpty();
+
+    int size();
+
+    void addEventCoalesceler(EventCoalescer coalescaler);
+    void removeEventCoalesceler(EventCoalescer coalescaler);
+
+    void addQueueListener(IEventQueueListener listener);
+    void removeQueueListener(IEventQueueListener listener);
+    void addQueueListener(IEventQueueListener listener, IThreadWorkQueue thread);
+    void removeQueueListener(IEventQueueListener listener, IThreadWorkQueue thread);
+
+    /**
+     * Coalesces mouse events.
+     */
+    public interface EventCoalescer {
+        /**
+         * 
+         * @param apriori
+         * @param aposterior
+         * @return coalesced event of the two or <code>null</code> if the two
+         *         events cannot be coalesced
+         */
+        Event coalesce(Event apriori, Event aposterior);
+    }
+
+    public interface IEventQueueListener {
+        void onEventAdded(IEventQueue queue, Event e, int index);
+        void onQueueEmpty(IEventQueue queue);
+    }
+
+}