]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.diagram.connection/src/org/simantics/diagram/connection/SimpleConnectionUtility.java
Round corners between non-axis-aligned connection lines properly
[simantics/platform.git] / bundles / org.simantics.diagram.connection / src / org / simantics / diagram / connection / SimpleConnectionUtility.java
index 109f8fe735ed9cf1bb947530c290e618633ea842..f36417b48d2c7cca4a19bd7709c307bfa7e44fe7 100644 (file)
@@ -17,7 +17,7 @@ package org.simantics.diagram.connection;
  * 
  * @author Hannu Niemistö
  */
-class SimpleConnectionUtility {
+public class SimpleConnectionUtility {
 
     public static boolean allowsDirection(RouteTerminal a, int dir) {
         return Directions.isAllowed(a.getAllowedDirections(), dir);
@@ -145,7 +145,7 @@ class SimpleConnectionUtility {
         return MORE_BENDS_BBS_DONT_INTERSECT;
     }
     
-    private static int simpleConnectionCaseRouteToBounds(RouteTerminal a,
+    public static int simpleConnectionCaseRouteToBounds(RouteTerminal a,
             RouteTerminal b) {
         double aX = 0.5*(a.getMinX() + a.getMaxX());
         double aY = 0.5*(a.getMinY() + a.getMaxY());