]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.diagram/src/org/simantics/diagram/content/TerminalMap.java
Added new diagram element transformation function rotateToNeighborSlope
[simantics/platform.git] / bundles / org.simantics.diagram / src / org / simantics / diagram / content / TerminalMap.java
index 45ed01a21f7ee137a1f724a2895b0a2664425b91..896d10e81829cc68520596c9b29abb9653468623 100644 (file)
@@ -1,5 +1,5 @@
 /*******************************************************************************
- * Copyright (c) 2007, 2010 Association for Decentralized Information Management
+ * Copyright (c) 2007, 2018 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
@@ -8,11 +8,13 @@
  *
  * Contributors:
  *     VTT Technical Research Centre of Finland - initial API and implementation
+ *     Semantum Oy - Added getTerminals & getConnectionPoints
  *******************************************************************************/
 package org.simantics.diagram.content;
 
 import java.util.HashMap;
 import java.util.Map;
+import java.util.Set;
 
 import org.simantics.db.Resource;
 
@@ -50,4 +52,18 @@ public class TerminalMap {
         rightToLeft.put(connectionPoint, terminal);
     }
 
+    /**
+     * @since 1.36.0
+     */
+    public Set<Resource> getTerminals() {
+        return leftToRight.keySet();
+    }
+
+    /**
+     * @since 1.36.0
+     */
+    public Set<Resource> getConnectionPoints() {
+        return rightToLeft.keySet();
+    }
+
 }