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.

This commit is contained in:
Gerald Boersma 2016-09-20 22:14:18 -07:00
parent 6211164ca2
commit 4ded15b885
1 changed files with 10 additions and 1 deletions

View File

@ -106,8 +106,17 @@ public class ContextView implements OptionProvider {
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) {