]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.g2d/src/org/simantics/g2d/dnd/DragItem.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.g2d / src / org / simantics / g2d / dnd / DragItem.java
index f357abf5b8bf11376f7d44b582da50d9d91b03fc..f12034c358100d2d829387a9c7aa863df2d04bc4 100644 (file)
@@ -1,52 +1,52 @@
-/*******************************************************************************\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
-package org.simantics.g2d.dnd;\r
-\r
-import java.awt.geom.Rectangle2D;\r
-\r
-import org.simantics.scenegraph.g2d.G2DParentNode;\r
-import org.simantics.utils.datastructures.hints.HintContext;\r
-import org.simantics.utils.datastructures.hints.IHintContext;\r
-\r
-/**\r
- * @author Tuukka Lehtonen\r
- */\r
-public class DragItem<T> implements IDragItem {\r
-\r
-    private final T           object;\r
-    private final HintContext ctx = new HintContext();\r
-\r
-    public DragItem(T obj) {\r
-        if (obj == null)\r
-            throw new NullPointerException("null object");\r
-        this.object = obj;\r
-    }\r
-\r
-    public T getObject() {\r
-        return object;\r
-    }\r
-\r
-    @Override\r
-    public Rectangle2D getBounds() {\r
-        return new Rectangle2D.Double(0, 0, 1, 1);\r
-    }\r
-\r
-    @Override\r
-    public void paint(G2DParentNode parent) {\r
-    }\r
-\r
-    @Override\r
-    public IHintContext getHintContext() {\r
-        return ctx;\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
+ *******************************************************************************/
+package org.simantics.g2d.dnd;
+
+import java.awt.geom.Rectangle2D;
+
+import org.simantics.scenegraph.g2d.G2DParentNode;
+import org.simantics.utils.datastructures.hints.HintContext;
+import org.simantics.utils.datastructures.hints.IHintContext;
+
+/**
+ * @author Tuukka Lehtonen
+ */
+public class DragItem<T> implements IDragItem {
+
+    private final T           object;
+    private final HintContext ctx = new HintContext();
+
+    public DragItem(T obj) {
+        if (obj == null)
+            throw new NullPointerException("null object");
+        this.object = obj;
+    }
+
+    public T getObject() {
+        return object;
+    }
+
+    @Override
+    public Rectangle2D getBounds() {
+        return new Rectangle2D.Double(0, 0, 1, 1);
+    }
+
+    @Override
+    public void paint(G2DParentNode parent) {
+    }
+
+    @Override
+    public IHintContext getHintContext() {
+        return ctx;
+    }
+
 }
\ No newline at end of file