]> gerrit.simantics Code Review - simantics/platform.git/commitdiff
Merge "(refs #7519) Added old constructor back to ConnectionVisuals."
authorHannu Niemistö <hannu.niemisto@semantum.fi>
Tue, 3 Oct 2017 19:08:37 +0000 (22:08 +0300)
committerGerrit Code Review <gerrit2@www.simantics.org>
Tue, 3 Oct 2017 19:08:37 +0000 (22:08 +0300)
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);