hide parent class and interface class references if there are too many of them
authorSvjatoslav Agejenko <svjatoslav@svjatoslav.eu>
Tue, 3 Feb 2015 05:04:43 +0000 (07:04 +0200)
committerSvjatoslav Agejenko <svjatoslav@svjatoslav.eu>
Tue, 3 Feb 2015 05:04:43 +0000 (07:04 +0200)
src/main/java/eu/svjatoslav/inspector/java/structure/ClassDescriptor.java

index c5c6a78..ccae767 100755 (executable)
@@ -149,6 +149,9 @@ public class ClassDescriptor implements GraphElement {
                        if (!interfaceDescriptor.isVisible())
                                continue;
 
+                       if (!interfaceDescriptor.areReferencesShown())
+                               continue;
+
                        result.append("    " + interfaceDescriptor.getGraphId() + " -> "
                                        + getGraphId() + "[style=\"dotted, tapered\", color=\""
                                        + interfaceDescriptor.getInterfaceColor()
@@ -185,6 +188,9 @@ public class ClassDescriptor implements GraphElement {
                if (!superClass.isVisible())
                        return;
 
+               if (!superClass.areReferencesShown())
+                       return;
+
                result.append("\n");
                result.append("    // super class for: " + classFullyQualifiedName
                                + "\n");