From: Svjatoslav Agejenko Date: Tue, 3 Feb 2015 05:04:43 +0000 (+0200) Subject: hide parent class and interface class references if there are too many of them X-Git-Tag: javainspect-1.4~4 X-Git-Url: http://www2.svjatoslav.eu/gitweb/?a=commitdiff_plain;h=18f39eb15871d45dbf3a0d39d0c34d9e398c844f;p=javainspect.git hide parent class and interface class references if there are too many of them --- diff --git a/src/main/java/eu/svjatoslav/inspector/java/structure/ClassDescriptor.java b/src/main/java/eu/svjatoslav/inspector/java/structure/ClassDescriptor.java index c5c6a78..ccae767 100755 --- a/src/main/java/eu/svjatoslav/inspector/java/structure/ClassDescriptor.java +++ b/src/main/java/eu/svjatoslav/inspector/java/structure/ClassDescriptor.java @@ -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");