From: Reino Ruusu Date: Tue, 3 Oct 2017 14:56:08 +0000 (+0300) Subject: (refs #7519) Added old constructor back to ConnectionVisuals. X-Git-Tag: v1.31.0~150^2 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=a04499b2328562e789c1dc3a4f6d2dda3f663f3d;p=simantics%2Fplatform.git (refs #7519) Added old constructor back to ConnectionVisuals. Change-Id: I3eecd6e8cd8099f5c48e4096136e41bcf9670dff --- diff --git a/bundles/org.simantics.diagram/src/org/simantics/diagram/connection/ConnectionVisuals.java b/bundles/org.simantics.diagram/src/org/simantics/diagram/connection/ConnectionVisuals.java index 5f62ac314..802881e16 100644 --- a/bundles/org.simantics.diagram/src/org/simantics/diagram/connection/ConnectionVisuals.java +++ b/bundles/org.simantics.diagram/src/org/simantics/diagram/connection/ConnectionVisuals.java @@ -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);