mirror of https://github.com/dspinellis/UMLGraph
Display interfaces.
This commit is contained in:
parent
d87f2dda86
commit
fff08645ca
|
|
@ -78,8 +78,7 @@ class ClassGraph {
|
|||
private void parameter(Parameter p[]) {
|
||||
for (int i = 0; i < p.length; i++) {
|
||||
opt.w.print(p[i].name());
|
||||
opt.w.print(" : ");
|
||||
opt.w.print(p[i].type());
|
||||
type(p[i].type());
|
||||
if (i + 1 < p.length)
|
||||
opt.w.print(", ");
|
||||
}
|
||||
|
|
@ -163,6 +162,12 @@ class ClassGraph {
|
|||
opt.w.print("\t" + name(s) + " -> " + cs + " [dir=back,arrowtail=empty];");
|
||||
opt.w.println("\t//" + c + " extends " + s);
|
||||
}
|
||||
// Print interfaces
|
||||
ClassDoc ifs[] = c.interfaces();
|
||||
for (int i = 0; i < ifs.length; i++) {
|
||||
opt.w.print("\t" + name(ifs[i]) + " -> " + cs + " [dir=back,arrowtail=empty,style=dashed];");
|
||||
opt.w.println("\t//" + c + " implements " + s);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -214,7 +219,8 @@ public class UmlGraph {
|
|||
opt.w.println(
|
||||
"#!/usr/local/bin/dot\n" +
|
||||
"#\n" +
|
||||
"# Class hirerarchy\n" +
|
||||
"# Class diagram \n" +
|
||||
"# Generated by $Id$\n" +
|
||||
"#\n\n" +
|
||||
"digraph G {\n" +
|
||||
"\tnode [fontname=\"Helvetica\",fontsize=8,shape=record];"
|
||||
|
|
|
|||
|
|
@ -78,8 +78,7 @@ class ClassGraph {
|
|||
private void parameter(Parameter p[]) {
|
||||
for (int i = 0; i < p.length; i++) {
|
||||
opt.w.print(p[i].name());
|
||||
opt.w.print(" : ");
|
||||
opt.w.print(p[i].type());
|
||||
type(p[i].type());
|
||||
if (i + 1 < p.length)
|
||||
opt.w.print(", ");
|
||||
}
|
||||
|
|
@ -163,6 +162,12 @@ class ClassGraph {
|
|||
opt.w.print("\t" + name(s) + " -> " + cs + " [dir=back,arrowtail=empty];");
|
||||
opt.w.println("\t//" + c + " extends " + s);
|
||||
}
|
||||
// Print interfaces
|
||||
ClassDoc ifs[] = c.interfaces();
|
||||
for (int i = 0; i < ifs.length; i++) {
|
||||
opt.w.print("\t" + name(ifs[i]) + " -> " + cs + " [dir=back,arrowtail=empty,style=dashed];");
|
||||
opt.w.println("\t//" + c + " implements " + s);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -214,7 +219,8 @@ public class UmlGraph {
|
|||
opt.w.println(
|
||||
"#!/usr/local/bin/dot\n" +
|
||||
"#\n" +
|
||||
"# Class hirerarchy\n" +
|
||||
"# Class diagram \n" +
|
||||
"# Generated by $Id$\n" +
|
||||
"#\n\n" +
|
||||
"digraph G {\n" +
|
||||
"\tnode [fontname=\"Helvetica\",fontsize=8,shape=record];"
|
||||
|
|
|
|||
|
|
@ -78,8 +78,7 @@ class ClassGraph {
|
|||
private void parameter(Parameter p[]) {
|
||||
for (int i = 0; i < p.length; i++) {
|
||||
opt.w.print(p[i].name());
|
||||
opt.w.print(" : ");
|
||||
opt.w.print(p[i].type());
|
||||
type(p[i].type());
|
||||
if (i + 1 < p.length)
|
||||
opt.w.print(", ");
|
||||
}
|
||||
|
|
@ -163,6 +162,12 @@ class ClassGraph {
|
|||
opt.w.print("\t" + name(s) + " -> " + cs + " [dir=back,arrowtail=empty];");
|
||||
opt.w.println("\t//" + c + " extends " + s);
|
||||
}
|
||||
// Print interfaces
|
||||
ClassDoc ifs[] = c.interfaces();
|
||||
for (int i = 0; i < ifs.length; i++) {
|
||||
opt.w.print("\t" + name(ifs[i]) + " -> " + cs + " [dir=back,arrowtail=empty,style=dashed];");
|
||||
opt.w.println("\t//" + c + " implements " + s);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -214,7 +219,8 @@ public class UmlGraph {
|
|||
opt.w.println(
|
||||
"#!/usr/local/bin/dot\n" +
|
||||
"#\n" +
|
||||
"# Class hirerarchy\n" +
|
||||
"# Class diagram \n" +
|
||||
"# Generated by $Id$\n" +
|
||||
"#\n\n" +
|
||||
"digraph G {\n" +
|
||||
"\tnode [fontname=\"Helvetica\",fontsize=8,shape=record];"
|
||||
|
|
|
|||
|
|
@ -78,8 +78,7 @@ class ClassGraph {
|
|||
private void parameter(Parameter p[]) {
|
||||
for (int i = 0; i < p.length; i++) {
|
||||
opt.w.print(p[i].name());
|
||||
opt.w.print(" : ");
|
||||
opt.w.print(p[i].type());
|
||||
type(p[i].type());
|
||||
if (i + 1 < p.length)
|
||||
opt.w.print(", ");
|
||||
}
|
||||
|
|
@ -163,6 +162,12 @@ class ClassGraph {
|
|||
opt.w.print("\t" + name(s) + " -> " + cs + " [dir=back,arrowtail=empty];");
|
||||
opt.w.println("\t//" + c + " extends " + s);
|
||||
}
|
||||
// Print interfaces
|
||||
ClassDoc ifs[] = c.interfaces();
|
||||
for (int i = 0; i < ifs.length; i++) {
|
||||
opt.w.print("\t" + name(ifs[i]) + " -> " + cs + " [dir=back,arrowtail=empty,style=dashed];");
|
||||
opt.w.println("\t//" + c + " implements " + s);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -214,7 +219,8 @@ public class UmlGraph {
|
|||
opt.w.println(
|
||||
"#!/usr/local/bin/dot\n" +
|
||||
"#\n" +
|
||||
"# Class hirerarchy\n" +
|
||||
"# Class diagram \n" +
|
||||
"# Generated by $Id$\n" +
|
||||
"#\n\n" +
|
||||
"digraph G {\n" +
|
||||
"\tnode [fontname=\"Helvetica\",fontsize=8,shape=record];"
|
||||
|
|
|
|||
|
|
@ -78,8 +78,7 @@ class ClassGraph {
|
|||
private void parameter(Parameter p[]) {
|
||||
for (int i = 0; i < p.length; i++) {
|
||||
opt.w.print(p[i].name());
|
||||
opt.w.print(" : ");
|
||||
opt.w.print(p[i].type());
|
||||
type(p[i].type());
|
||||
if (i + 1 < p.length)
|
||||
opt.w.print(", ");
|
||||
}
|
||||
|
|
@ -163,6 +162,12 @@ class ClassGraph {
|
|||
opt.w.print("\t" + name(s) + " -> " + cs + " [dir=back,arrowtail=empty];");
|
||||
opt.w.println("\t//" + c + " extends " + s);
|
||||
}
|
||||
// Print interfaces
|
||||
ClassDoc ifs[] = c.interfaces();
|
||||
for (int i = 0; i < ifs.length; i++) {
|
||||
opt.w.print("\t" + name(ifs[i]) + " -> " + cs + " [dir=back,arrowtail=empty,style=dashed];");
|
||||
opt.w.println("\t//" + c + " implements " + s);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -214,7 +219,8 @@ public class UmlGraph {
|
|||
opt.w.println(
|
||||
"#!/usr/local/bin/dot\n" +
|
||||
"#\n" +
|
||||
"# Class hirerarchy\n" +
|
||||
"# Class diagram \n" +
|
||||
"# Generated by $Id$\n" +
|
||||
"#\n\n" +
|
||||
"digraph G {\n" +
|
||||
"\tnode [fontname=\"Helvetica\",fontsize=8,shape=record];"
|
||||
|
|
|
|||
|
|
@ -78,8 +78,7 @@ class ClassGraph {
|
|||
private void parameter(Parameter p[]) {
|
||||
for (int i = 0; i < p.length; i++) {
|
||||
opt.w.print(p[i].name());
|
||||
opt.w.print(" : ");
|
||||
opt.w.print(p[i].type());
|
||||
type(p[i].type());
|
||||
if (i + 1 < p.length)
|
||||
opt.w.print(", ");
|
||||
}
|
||||
|
|
@ -163,6 +162,12 @@ class ClassGraph {
|
|||
opt.w.print("\t" + name(s) + " -> " + cs + " [dir=back,arrowtail=empty];");
|
||||
opt.w.println("\t//" + c + " extends " + s);
|
||||
}
|
||||
// Print interfaces
|
||||
ClassDoc ifs[] = c.interfaces();
|
||||
for (int i = 0; i < ifs.length; i++) {
|
||||
opt.w.print("\t" + name(ifs[i]) + " -> " + cs + " [dir=back,arrowtail=empty,style=dashed];");
|
||||
opt.w.println("\t//" + c + " implements " + s);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -214,7 +219,8 @@ public class UmlGraph {
|
|||
opt.w.println(
|
||||
"#!/usr/local/bin/dot\n" +
|
||||
"#\n" +
|
||||
"# Class hirerarchy\n" +
|
||||
"# Class diagram \n" +
|
||||
"# Generated by $Id$\n" +
|
||||
"#\n\n" +
|
||||
"digraph G {\n" +
|
||||
"\tnode [fontname=\"Helvetica\",fontsize=8,shape=record];"
|
||||
|
|
|
|||
|
|
@ -78,8 +78,7 @@ class ClassGraph {
|
|||
private void parameter(Parameter p[]) {
|
||||
for (int i = 0; i < p.length; i++) {
|
||||
opt.w.print(p[i].name());
|
||||
opt.w.print(" : ");
|
||||
opt.w.print(p[i].type());
|
||||
type(p[i].type());
|
||||
if (i + 1 < p.length)
|
||||
opt.w.print(", ");
|
||||
}
|
||||
|
|
@ -163,6 +162,12 @@ class ClassGraph {
|
|||
opt.w.print("\t" + name(s) + " -> " + cs + " [dir=back,arrowtail=empty];");
|
||||
opt.w.println("\t//" + c + " extends " + s);
|
||||
}
|
||||
// Print interfaces
|
||||
ClassDoc ifs[] = c.interfaces();
|
||||
for (int i = 0; i < ifs.length; i++) {
|
||||
opt.w.print("\t" + name(ifs[i]) + " -> " + cs + " [dir=back,arrowtail=empty,style=dashed];");
|
||||
opt.w.println("\t//" + c + " implements " + s);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -214,7 +219,8 @@ public class UmlGraph {
|
|||
opt.w.println(
|
||||
"#!/usr/local/bin/dot\n" +
|
||||
"#\n" +
|
||||
"# Class hirerarchy\n" +
|
||||
"# Class diagram \n" +
|
||||
"# Generated by $Id$\n" +
|
||||
"#\n\n" +
|
||||
"digraph G {\n" +
|
||||
"\tnode [fontname=\"Helvetica\",fontsize=8,shape=record];"
|
||||
|
|
|
|||
|
|
@ -78,8 +78,7 @@ class ClassGraph {
|
|||
private void parameter(Parameter p[]) {
|
||||
for (int i = 0; i < p.length; i++) {
|
||||
opt.w.print(p[i].name());
|
||||
opt.w.print(" : ");
|
||||
opt.w.print(p[i].type());
|
||||
type(p[i].type());
|
||||
if (i + 1 < p.length)
|
||||
opt.w.print(", ");
|
||||
}
|
||||
|
|
@ -163,6 +162,12 @@ class ClassGraph {
|
|||
opt.w.print("\t" + name(s) + " -> " + cs + " [dir=back,arrowtail=empty];");
|
||||
opt.w.println("\t//" + c + " extends " + s);
|
||||
}
|
||||
// Print interfaces
|
||||
ClassDoc ifs[] = c.interfaces();
|
||||
for (int i = 0; i < ifs.length; i++) {
|
||||
opt.w.print("\t" + name(ifs[i]) + " -> " + cs + " [dir=back,arrowtail=empty,style=dashed];");
|
||||
opt.w.println("\t//" + c + " implements " + s);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -214,7 +219,8 @@ public class UmlGraph {
|
|||
opt.w.println(
|
||||
"#!/usr/local/bin/dot\n" +
|
||||
"#\n" +
|
||||
"# Class hirerarchy\n" +
|
||||
"# Class diagram \n" +
|
||||
"# Generated by $Id$\n" +
|
||||
"#\n\n" +
|
||||
"digraph G {\n" +
|
||||
"\tnode [fontname=\"Helvetica\",fontsize=8,shape=record];"
|
||||
|
|
|
|||
|
|
@ -78,8 +78,7 @@ class ClassGraph {
|
|||
private void parameter(Parameter p[]) {
|
||||
for (int i = 0; i < p.length; i++) {
|
||||
opt.w.print(p[i].name());
|
||||
opt.w.print(" : ");
|
||||
opt.w.print(p[i].type());
|
||||
type(p[i].type());
|
||||
if (i + 1 < p.length)
|
||||
opt.w.print(", ");
|
||||
}
|
||||
|
|
@ -163,6 +162,12 @@ class ClassGraph {
|
|||
opt.w.print("\t" + name(s) + " -> " + cs + " [dir=back,arrowtail=empty];");
|
||||
opt.w.println("\t//" + c + " extends " + s);
|
||||
}
|
||||
// Print interfaces
|
||||
ClassDoc ifs[] = c.interfaces();
|
||||
for (int i = 0; i < ifs.length; i++) {
|
||||
opt.w.print("\t" + name(ifs[i]) + " -> " + cs + " [dir=back,arrowtail=empty,style=dashed];");
|
||||
opt.w.println("\t//" + c + " implements " + s);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -214,7 +219,8 @@ public class UmlGraph {
|
|||
opt.w.println(
|
||||
"#!/usr/local/bin/dot\n" +
|
||||
"#\n" +
|
||||
"# Class hirerarchy\n" +
|
||||
"# Class diagram \n" +
|
||||
"# Generated by $Id$\n" +
|
||||
"#\n\n" +
|
||||
"digraph G {\n" +
|
||||
"\tnode [fontname=\"Helvetica\",fontsize=8,shape=record];"
|
||||
|
|
|
|||
|
|
@ -78,8 +78,7 @@ class ClassGraph {
|
|||
private void parameter(Parameter p[]) {
|
||||
for (int i = 0; i < p.length; i++) {
|
||||
opt.w.print(p[i].name());
|
||||
opt.w.print(" : ");
|
||||
opt.w.print(p[i].type());
|
||||
type(p[i].type());
|
||||
if (i + 1 < p.length)
|
||||
opt.w.print(", ");
|
||||
}
|
||||
|
|
@ -163,6 +162,12 @@ class ClassGraph {
|
|||
opt.w.print("\t" + name(s) + " -> " + cs + " [dir=back,arrowtail=empty];");
|
||||
opt.w.println("\t//" + c + " extends " + s);
|
||||
}
|
||||
// Print interfaces
|
||||
ClassDoc ifs[] = c.interfaces();
|
||||
for (int i = 0; i < ifs.length; i++) {
|
||||
opt.w.print("\t" + name(ifs[i]) + " -> " + cs + " [dir=back,arrowtail=empty,style=dashed];");
|
||||
opt.w.println("\t//" + c + " implements " + s);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -214,7 +219,8 @@ public class UmlGraph {
|
|||
opt.w.println(
|
||||
"#!/usr/local/bin/dot\n" +
|
||||
"#\n" +
|
||||
"# Class hirerarchy\n" +
|
||||
"# Class diagram \n" +
|
||||
"# Generated by $Id$\n" +
|
||||
"#\n\n" +
|
||||
"digraph G {\n" +
|
||||
"\tnode [fontname=\"Helvetica\",fontsize=8,shape=record];"
|
||||
|
|
|
|||
Loading…
Reference in New Issue