-package org.simantics.g2d.element.handler.impl;\r
-\r
-import java.awt.Shape;\r
-import java.util.Collection;\r
-\r
-import org.simantics.g2d.diagram.handler.Topology.Terminal;\r
-import org.simantics.g2d.element.ElementUtils;\r
-import org.simantics.g2d.element.IElement;\r
-\r
-/**\r
- * @author Tuukka Lehtonen\r
- */\r
-public class WholeElementTerminals extends Terminals {\r
-\r
- private static final long serialVersionUID = -1366493887226451146L;\r
-\r
- public WholeElementTerminals(Collection<ObjectTerminal> ts) {\r
- super(ts);\r
- }\r
-\r
- @Override\r
- public Shape getTerminalShape(IElement node, Terminal t) {\r
- // For each terminal, return the shape of the element.\r
- return ElementUtils.getElementShapeOrBounds(node);\r
- }\r
-\r
-}\r
+package org.simantics.g2d.element.handler.impl;
+
+import java.awt.Shape;
+import java.util.Collection;
+
+import org.simantics.g2d.diagram.handler.Topology.Terminal;
+import org.simantics.g2d.element.ElementUtils;
+import org.simantics.g2d.element.IElement;
+
+/**
+ * @author Tuukka Lehtonen
+ */
+public class WholeElementTerminals extends Terminals {
+
+ private static final long serialVersionUID = -1366493887226451146L;
+
+ public WholeElementTerminals(Collection<ObjectTerminal> ts) {
+ super(ts);
+ }
+
+ @Override
+ public Shape getTerminalShape(IElement node, Terminal t) {
+ // For each terminal, return the shape of the element.
+ return ElementUtils.getElementShapeOrBounds(node);
+ }
+
+}