]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.g2d/src/org/simantics/g2d/element/handler/impl/proxy/ProxyTerminalHandler.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.g2d / src / org / simantics / g2d / element / handler / impl / proxy / ProxyTerminalHandler.java
index 2ff097a86facf0e37e5bff89e502ec4e6dd846dc..e1c5d42933fd3f5e9c86f158607d90b8f757f041 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.element.handler.impl.proxy;\r
-\r
-import java.awt.Shape;\r
-import java.awt.geom.AffineTransform;\r
-\r
-import org.simantics.g2d.diagram.handler.Topology.Terminal;\r
-import org.simantics.g2d.element.IElement;\r
-import org.simantics.g2d.element.handler.TerminalLayout;\r
-import org.simantics.g2d.utils.geom.DirectionSet;\r
-\r
-/**\r
- * @author Toni Kalajainen\r
- */\r
-public class ProxyTerminalHandler implements TerminalLayout {\r
-\r
-    private static final long serialVersionUID = 219568974959605233L;\r
-\r
-    TerminalLayout orig;\r
-    IProxyProvider provider;\r
-\r
-    public ProxyTerminalHandler(IProxyProvider provider, TerminalLayout orig) {\r
-        this.provider = provider;\r
-        this.orig = orig;\r
-    }\r
-\r
-    @Override\r
-    public AffineTransform getTerminalPosition(IElement node, Terminal t) {\r
-        return orig.getTerminalPosition(provider.provide(node), t);\r
-    }\r
-\r
-    @Override\r
-    public boolean getTerminalDirection(IElement node, Terminal t, DirectionSet directions) {\r
-        return orig.getTerminalDirection(node, t, directions);\r
-    }\r
-\r
-    @Override\r
-    public Shape getTerminalShape(IElement node, Terminal t) {\r
-        return orig.getTerminalShape(node, t);\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
+ *******************************************************************************/
+package org.simantics.g2d.element.handler.impl.proxy;
+
+import java.awt.Shape;
+import java.awt.geom.AffineTransform;
+
+import org.simantics.g2d.diagram.handler.Topology.Terminal;
+import org.simantics.g2d.element.IElement;
+import org.simantics.g2d.element.handler.TerminalLayout;
+import org.simantics.g2d.utils.geom.DirectionSet;
+
+/**
+ * @author Toni Kalajainen
+ */
+public class ProxyTerminalHandler implements TerminalLayout {
+
+    private static final long serialVersionUID = 219568974959605233L;
+
+    TerminalLayout orig;
+    IProxyProvider provider;
+
+    public ProxyTerminalHandler(IProxyProvider provider, TerminalLayout orig) {
+        this.provider = provider;
+        this.orig = orig;
+    }
+
+    @Override
+    public AffineTransform getTerminalPosition(IElement node, Terminal t) {
+        return orig.getTerminalPosition(provider.provide(node), t);
+    }
+
+    @Override
+    public boolean getTerminalDirection(IElement node, Terminal t, DirectionSet directions) {
+        return orig.getTerminalDirection(node, t, directions);
+    }
+
+    @Override
+    public Shape getTerminalShape(IElement node, Terminal t) {
+        return orig.getTerminalShape(node, t);
+    }
+
+}