Methods Summary |
---|
public static void | generate(ClassTree classtree)Create a TreeWriter object and use it to generate the
"overview-tree.html" file.
TreeWriter treegen;
String filename = "overview-tree.html";
try {
treegen = new TreeWriter(filename, classtree);
treegen.generateTreeFile();
treegen.close();
} catch (IOException exc) {
Standard.configuration().standardmessage.
error("doclet.exception_encountered", exc.toString(), filename);
throw new DocletAbortException();
}
|
public void | generateTreeFile()Print the interface hierarchy and class hierarchy in the file.
printHeader(getText("doclet.Window_Class_Hierarchy",
Standard.configuration().windowtitle));
printTreeHeader();
printPageHeading();
printPackageTreeLinks();
generateTree(classtree.baseclasses(), "doclet.Class_Hierarchy");
generateTree(classtree.baseinterfaces(), "doclet.Interface_Hierarchy");
printTreeFooter();
|
protected void | printPackageTreeLinks()Generate the links to all the package tree files.
if (!classesonly) {
dl();
dt();
boldText("doclet.Package_Hierarchies");
dd();
for (int i = 0; i < packages.length; i++) {
String filename = pathString(packages[i], "package-tree.html");
printHyperLink(filename, "", packages[i].name());
if (i < packages.length - 1) {
print(", ");
}
}
dlEnd();
hr();
}
|
protected void | printPageHeading()Print the page title "Hierarchy For All Packages" at the top of the tree
page.
center();
h2();
printText("doclet.Hierarchy_For_All_Packages");
h2End();
centerEnd();
|
protected void | printTreeFooter()Print the navigation bar links at the bottom.
hr();
navLinks(false);
printBottom();
printBodyHtmlEnd();
|
protected void | printTreeHeader()Print the navigation bar links at the top.
navLinks(true);
hr();
|