]> gerrit.simantics Code Review - simantics/district.git/blobdiff - org.simantics.district.network/src/org/simantics/district/network/visualisations/DynamicVisualisationsContributions.java
Move edge arrow rendering to a separate node forcing render on top
[simantics/district.git] / org.simantics.district.network / src / org / simantics / district / network / visualisations / DynamicVisualisationsContributions.java
index e3ede04fb970053c87d17962f2fbf398ab140e98..1a16ee55389214e4cb39f7862cb06e5a6231235a 100644 (file)
@@ -247,6 +247,19 @@ public class DynamicVisualisationsContributions {
                 colorContributions = colorContributionSupplier.get().collect(Collectors.toMap(c -> c.getLabel(), c -> c));
             return colorContributions;
         }
+        
+        @Override
+        public String toString() {
+            return getClass().getSimpleName() + " [" + coloringObject.getName() + " (" + coloringObject.getResource() + "), contributions=" + colorContributionsToString() + "]";
+        }
+        
+        private String colorContributionsToString() {
+            
+            return colorContributions.keySet().stream().map(key -> {
+                DynamicColorContribution dynamicColorContribution = colorContributions.get(key);
+                return key + "=" + dynamicColorContribution.getLabel();
+            }).collect(Collectors.joining(", ", "{", "}"));
+        }
     }
 
     public static class DynamicColoringMap {