From 4ded15b8851474225235eae6a6bc06a7eaf02601 Mon Sep 17 00:00:00 2001 From: Gerald Boersma Date: Tue, 20 Sep 2016 22:14:18 -0700 Subject: [PATCH] Issue #35: Modify the options for the class on a context diagram to hide all of the detail (operations, etc.) for classes other than the primary class. --- src/main/java/org/umlgraph/doclet/ContextView.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/umlgraph/doclet/ContextView.java b/src/main/java/org/umlgraph/doclet/ContextView.java index 7d8d9cd9..4d3d913b 100755 --- a/src/main/java/org/umlgraph/doclet/ContextView.java +++ b/src/main/java/org/umlgraph/doclet/ContextView.java @@ -106,8 +106,17 @@ public void overrideForClass(Options opt, ClassDoc cd) { opt.setOptions(cd); if (opt.matchesHideExpression(cd.toString()) || !matcher.matches(cd)) opt.setOption(HIDE_OPTIONS); - if (cd.equals(this.cd)) + if (cd.equals(this.cd)) { opt.nodeFillColor = "lemonChiffon"; + } else { + // If the class is not the class on the Javadoc page, hide all the detail. + // In order for attributes and operations to be properly hidden, + // all of these need to be set to false. + opt.showAttributes = false; + opt.showOperations = false; + opt.showConstructors = false; + opt.showEnumConstants = false; + } } public void overrideForClass(Options opt, String className) {