]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.g2d/src/org/simantics/g2d/dnd/ElementClassDragItem.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.g2d / src / org / simantics / g2d / dnd / ElementClassDragItem.java
index 2a837ecd276a044aa4140d47766ce93e278ff55e..283ba178620157445637b4cbf7ed0738f610d04b 100644 (file)
@@ -1,58 +1,58 @@
-/*******************************************************************************\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.g2d.element.ElementClass;\r
-import org.simantics.g2d.element.handler.StaticSymbol;\r
-import org.simantics.g2d.image.Image;\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 ElementClassDragItem implements IDragItem {\r
-\r
-    private final ElementClass ec;\r
-    private final HintContext        ctx = new HintContext();\r
-\r
-    public ElementClassDragItem(ElementClass ec) {\r
-        if (ec == null)\r
-            throw new NullPointerException("null element class");\r
-        this.ec = ec;\r
-    }\r
-\r
-    public ElementClass getElementClass() {\r
-        return ec;\r
-    }\r
-\r
-    @Override\r
-    public Rectangle2D getBounds() {\r
-        Image i = ec.getSingleItem(StaticSymbol.class).getImage();\r
-        return i.getBounds();\r
-    }\r
-\r
-    @Override\r
-    public void paint(G2DParentNode parent) {\r
-        Image i = ec.getSingleItem(StaticSymbol.class).getImage();\r
-        i.init(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.g2d.element.ElementClass;
+import org.simantics.g2d.element.handler.StaticSymbol;
+import org.simantics.g2d.image.Image;
+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 ElementClassDragItem implements IDragItem {
+
+    private final ElementClass ec;
+    private final HintContext        ctx = new HintContext();
+
+    public ElementClassDragItem(ElementClass ec) {
+        if (ec == null)
+            throw new NullPointerException("null element class");
+        this.ec = ec;
+    }
+
+    public ElementClass getElementClass() {
+        return ec;
+    }
+
+    @Override
+    public Rectangle2D getBounds() {
+        Image i = ec.getSingleItem(StaticSymbol.class).getImage();
+        return i.getBounds();
+    }
+
+    @Override
+    public void paint(G2DParentNode parent) {
+        Image i = ec.getSingleItem(StaticSymbol.class).getImage();
+        i.init(parent);
+    }
+
+    @Override
+    public IHintContext getHintContext() {
+        return ctx;
+    }
+
 }
\ No newline at end of file