From 18f39eb15871d45dbf3a0d39d0c34d9e398c844f Mon Sep 17 00:00:00 2001 From: Svjatoslav Agejenko Date: Tue, 3 Feb 2015 07:04:43 +0200 Subject: [PATCH] hide parent class and interface class references if there are too many of them --- .../inspector/java/structure/ClassDescriptor.java | 6 ++++++ 1 file changed, 6 insertions(+) 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"); -- 2.20.1