(refs #7519) Added old constructor back to ConnectionVisuals. 69/1069/1
authorReino Ruusu <reino.ruusu@vtt.fi>
Tue, 3 Oct 2017 14:56:08 +0000 (17:56 +0300)
committerReino Ruusu <reino.ruusu@vtt.fi>
Tue, 3 Oct 2017 14:56:08 +0000 (17:56 +0300)
Change-Id: I3eecd6e8cd8099f5c48e4096136e41bcf9670dff

bundles/org.simantics.diagram/src/org/simantics/diagram/connection/ConnectionVisuals.java

index 5f62ac31469798b15ac2d95ec2712a75b108bcc2..802881e1610efa52d787e0670edddb4c291e45de 100644 (file)
@@ -28,6 +28,10 @@ public class ConnectionVisuals {
     public final Double branchPointRadius;
     public final Double rounding;
 
+    public ConnectionVisuals(float[] color, StrokeType strokeType, Stroke stroke, Double rounding) {
+       this(color, strokeType, stroke, null, rounding);
+    }
+
     public ConnectionVisuals(float[] color, StrokeType strokeType, Stroke stroke, Double branchPointRadius, Double rounding) {
         if (color != null && color.length < 3)
             throw new IllegalArgumentException("colors must have at least 3 components (rgb), got " + color.length);