diff --git a/src/main/java/org/umlgraph/doclet/ClassGraph.java b/src/main/java/org/umlgraph/doclet/ClassGraph.java index 90e549c..1bc6d0e 100644 --- a/src/main/java/org/umlgraph/doclet/ClassGraph.java +++ b/src/main/java/org/umlgraph/doclet/ClassGraph.java @@ -343,9 +343,8 @@ class ClassGraph { className = removeTemplate(className); ClassInfo ci = classnames.get(className); if (ci == null && create) { - Options o = optionProvider.getOptionsFor(className); - boolean hidden = cd != null ? hidden(cd) : o.matchesHideExpression(className); - ci = new ClassInfo(hidden, o.shape.landingPort()); + boolean hidden = cd != null ? hidden(cd) : optionProvider.getOptionsFor(className).matchesHideExpression(className); + ci = new ClassInfo(hidden); classnames.put(className, ci); } return ci; @@ -478,7 +477,7 @@ class ClassGraph { externalTableEnd(); nodeProperties(UmlGraph.getCommentOptions()); ClassInfo ci1 = getClassInfo(c, true); - w.print(linePrefix + noteName + " -> " + ci1.name + ci1.port + "[arrowhead=none];\n"); + w.print(linePrefix + noteName + " -> " + ci1.name + "[arrowhead=none];\n"); ni++; } ci.nodePrinted = true; @@ -528,13 +527,12 @@ class ClassGraph { boolean unLabeled = tailLabel.isEmpty() && label.isEmpty() && headLabel.isEmpty(); ClassInfo ci1 = getClassInfo(from, fromName, true), ci2 = getClassInfo(to, toName, true); - String n1 = ci1.name + ci1.port, n2 = ci2.name + ci2.port; + String n1 = ci1.name, n2 = ci2.name; // For ranking we need to output extends/implements backwards. if (rt.backorder) { // Swap: - String tmp = n1; - n1 = n2; - n2 = tmp; - tmp = tailLabel; + n1 = ci2.name; + n2 = ci1.name; + String tmp = tailLabel; tailLabel = headLabel; headLabel = tmp; } @@ -886,7 +884,7 @@ class ClassGraph { linePrefix + "node [fontname=\"" + opt.nodeFontName + "\",fontcolor=\"" + opt.nodeFontColor + "\",fontsize=" + fmt(opt.nodeFontSize) + - ",shape=plaintext];" + ",shape=plaintext,margin=0,width=0,height=0];" ); w.println(linePrefix + "nodesep=" + opt.nodeSep + ";"); @@ -909,7 +907,7 @@ class ClassGraph { String href = url == null ? "" : (" href=\"" + url + "\" target=\"_parent\""); w.print("<