FreeHEP API
Version current

org.freehep.tools.doclet
Class PackageWriter

java.lang.Object
  extended byjava.io.Writer
      extended byjava.io.PrintWriter
          extended bycom.sun.tools.doclets.HtmlWriter
              extended bycom.sun.tools.doclets.HtmlDocWriter
                  extended byorg.freehep.tools.doclet.HtmlStandardWriter
                      extended byorg.freehep.tools.doclet.AbstractPackageWriter
                          extended byorg.freehep.tools.doclet.PackageWriter

public class PackageWriter
extends AbstractPackageWriter

Class to generate file for each package contents in the right-hand frame. This will list all the Class Kinds in the package. A click on any class-kind will update the frame with the clicked class-kind page.

Author:
Atul M Dambalkar
Source Code:
PackageWriter.java

Field Summary
protected  com.sun.javadoc.PackageDoc next
          The next package name in the alpha-order list.
protected  com.sun.javadoc.PackageDoc prev
          The prev package name in the alpha-order list.
 
Fields inherited from class org.freehep.tools.doclet.AbstractPackageWriter
documentedClasses
 
Fields inherited from class org.freehep.tools.doclet.HtmlStandardWriter
backpath, configuration, displayLength, DOC_FILES_DIR_NAME, filename, path, relativepath, relativepathNoSlash
 
Fields inherited from class com.sun.tools.doclets.HtmlWriter
fileseparator, htmlFilename, winTitle
 
Fields inherited from class java.io.PrintWriter
out
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
PackageWriter(ConfigurationStandard configuration, String path, String filename, com.sun.javadoc.PackageDoc packagedoc, com.sun.javadoc.PackageDoc prev, com.sun.javadoc.PackageDoc next)
          Constructor to construct PackageWriter object and to generate "package-summary.html" file in the respective package directory.
 
Method Summary
static void generate(ConfigurationStandard configuration, com.sun.javadoc.PackageDoc pkg, com.sun.javadoc.PackageDoc prev, com.sun.javadoc.PackageDoc next)
          Generate a package summary page for the right-hand frame.
protected  void generateClassKindListing(com.sun.javadoc.ClassDoc[] arr, String label)
          Generate specific class kind listing.
protected  void generateClassListing()
          Generate class listing for all the classes in this package.
protected  void navLinkClassUse()
          Print "Use" link for this pacakge in the navigation bar.
protected  void navLinkNext()
          Print "NEXT PACKAGE" link in the navigation bar.
protected  void navLinkPrevious()
          Print "PREV PACKAGE" link in the navigation bar.
protected  void navLinkTree()
          Print "Tree" link in the navigation bar.
protected  void printFirstRow(String label)
          Print the table heading for the class-listing.
protected  void printPackageComment()
          Print the package comment as specified in the "packages.html" file in the source package directory.
protected  void printPackageDescription()
          Print the package description and the tag information from the "packages.html" file.
protected  void printPackageFooter()
          Print the navigation bar links at the bottom also print the "-bottom" if specified on the command line.
protected  void printPackageHeader(String heading)
          Print one line summary cooment for the package at the top of the page and add link to the description which is generated at the end of the page.
 
Methods inherited from class org.freehep.tools.doclet.AbstractPackageWriter
generatePackageFile, navLinkPackage
 
Methods inherited from class org.freehep.tools.doclet.HtmlStandardWriter
boldText, boldText, boldText, commentTagsToString, configuration, copyDocFiles, error, error, frame, frameEnd, frameSet, frameSetEnd, generateTagInfo, generateTagInfo, getClassLink, getClassLink, getClassLink, getClassLink, getClassLink, getClassLink, getCrossClassLink, getCrossPackageLink, getDocLink, getDocLink, getPackageLink, getPackageLink, getPackageLink, getPackageLink, getPreQualifiedClassLink, getPreQualifiedClassLink, getQualifiedClassLink, getSourcePath, getText, getText, getText, getText, isCoreClass, isCrossClassIncluded, isGeneratedDoc, italicsClassName, msg, navCellEnd, navCellRevStart, navCellStart, navDetail, navHideLists, navHideLists, navLinkClass, navLinkClassIndex, navLinkContents, navLinkDeprecated, navLinkHelp, navLinkIndex, navLinkMainTree, navLinkNext, navLinkPackage, navLinkPrevious, navLinks, navShowLists, navShowLists, navSummary, notice, notice, pathString, pathString, pathToClass, printBoldTargetHyperLink, printBottom, printClassLink, printClassLink, printClassLink, printClassLink, printClassLink, printClassLink, printClassLink, printDocLink, printDocLink, printHtmlHeader, printHtmlHeader, printHtmlHeader, printIndexHeading, printInlineComment, printInlineComment, printInlineDeprecatedComment, printInlineDeprecatedComment, printNoFramesBoldTargetHyperLink, printNoFramesTargetHyperLink, printPackageLink, printPackageLink, printPackageLink, printPreQualifiedBoldClassLink, printPreQualifiedClassLink, printQualifiedClassLink, printSinceTag, printSrcLink, printStyleSheetProperties, printSummaryComment, printSummaryDeprecatedComment, printSummaryDeprecatedComment, printSummaryDetailLinks, printTargetClassLink, printTargetHyperLink, printTargetHyperLink, printTargetHyperLink, printTargetPackageLink, printText, printText, printText, printUserHeaderFooter, removeNonInlineHtmlTags, replace, replaceDocRootDir, replaceInheritDoc, seeTagToString, serialClassInclude, serialDocInclude, serialInclude, summaryRow, summaryRowEnd, tableHeaderEnd, tableHeaderStart, tableHeaderStart, tableHeaderStart, tableHeaderStart, tableIndexDetail, tableIndexSummary, tableInheritedHeaderEnd, tableInheritedHeaderStart, tableUseInfoHeaderStart, tdIndex, warning, warning, warning
 
Methods inherited from class com.sun.tools.doclets.HtmlDocWriter
getHyperLink, getHyperLink, getHyperLink, getHyperLink, getPkgName, printBodyHtmlEnd, printFooter, printFrameFooter, printFramesetHeader, printFramesetHeader, printHyperLink, printHyperLink, printHyperLink, printHyperLink, printNbsps, printPkgName, spaces, today
 
Methods inherited from class com.sun.tools.doclets.HtmlWriter
address, addressEnd, aEnd, aName, anchor, anchor, blockquote, blockquoteEnd, body, bodyEnd, bold, bold, boldEnd, br, center, centerEnd, code, codeEnd, codeText, commentEnd, commentStart, dd, ddEnd, dl, dlEnd, dt, em, emEnd, font, fontEnd, fontSizeStyle, fontStyle, genWriter, getBold, getBoldEnd, getCode, getCodeEnd, getFontColor, getFontEnd, getWindowTitleOnload, h1, h1, h1End, h2, h2, h2End, h3, h3, h3End, h4, h4, h4End, h5, h5End, head, headEnd, hr, hr, hr, html, htmlEnd, img, italic, italicEnd, italics, italicsText, li, li, link, menu, menuEnd, noFrames, noFramesEnd, p, pEnd, pre, preEnd, printWinTitleScript, script, scriptEnd, space, sup, supEnd, table, table, table, table, tableEnd, td, tdAlign, tdAlignRowspan, tdAlignVAlign, tdAlignVAlignRowspan, tdBgcolorStyle, tdColspan, tdColspanBgcolorStyle, tdEnd, tdNowrap, tdVAlign, tdVAlignClass, tdWidth, title, title, titleEnd, tr, trAlignVAlign, trBgcolor, trBgcolorStyle, trEnd, ul, ulEnd
 
Methods inherited from class java.io.PrintWriter
checkError, close, flush, print, print, print, print, print, print, print, print, print, println, println, println, println, println, println, println, println, println, println, setError, write, write, write, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

prev

protected com.sun.javadoc.PackageDoc prev
The prev package name in the alpha-order list.


next

protected com.sun.javadoc.PackageDoc next
The next package name in the alpha-order list.

Constructor Detail

PackageWriter

public PackageWriter(ConfigurationStandard configuration,
                     String path,
                     String filename,
                     com.sun.javadoc.PackageDoc packagedoc,
                     com.sun.javadoc.PackageDoc prev,
                     com.sun.javadoc.PackageDoc next)
              throws IOException
Constructor to construct PackageWriter object and to generate "package-summary.html" file in the respective package directory. For example for package "java.lang" this will generate file "package-summary.html" file in the "java/lang" directory. It will also create "java/lang" directory in the current or the destination directory if it doesen't exist.

Parameters:
path - Directories in this path will be created if they are not already there.
filename - Name of the package summary file to be generated, "package-frame.html".
packagedoc - PackageDoc under consideration.
prev - Previous package in the sorted array.
next - Next package in the sorted array.
Throws:
IOException
com.sun.tools.doclets.DocletAbortException
Method Detail

generate

public static void generate(ConfigurationStandard configuration,
                            com.sun.javadoc.PackageDoc pkg,
                            com.sun.javadoc.PackageDoc prev,
                            com.sun.javadoc.PackageDoc next)
Generate a package summary page for the right-hand frame. Construct the PackageFrameWriter object and then uses it generate the file.

Parameters:
pkg - The package for which "pacakge-summary.html" is to be generated.
prev - Previous package in the sorted array.
next - Next package in the sorted array.
Throws:
com.sun.tools.doclets.DocletAbortException

generateClassListing

protected void generateClassListing()
Generate class listing for all the classes in this package. Divide class listing as per the class kind and generate separate listing for Classes, Interfaces, Exceptions and Errors.

Specified by:
generateClassListing in class AbstractPackageWriter

generateClassKindListing

protected void generateClassKindListing(com.sun.javadoc.ClassDoc[] arr,
                                        String label)
Generate specific class kind listing. Also add label to the listing.

Parameters:
arr - Array of specific class kinds, namely Class or Interface or Exception or Error.
label - Label for the listing

printFirstRow

protected void printFirstRow(String label)
Print the table heading for the class-listing.

Parameters:
label - Label for the Class kind listing.

printPackageComment

protected void printPackageComment()
Print the package comment as specified in the "packages.html" file in the source package directory.


printPackageDescription

protected void printPackageDescription()
                                throws IOException
Print the package description and the tag information from the "packages.html" file.

Specified by:
printPackageDescription in class AbstractPackageWriter
Throws:
IOException

printPackageHeader

protected void printPackageHeader(String heading)
Print one line summary cooment for the package at the top of the page and add link to the description which is generated at the end of the page.

Specified by:
printPackageHeader in class AbstractPackageWriter
Parameters:
heading - Package name.

printPackageFooter

protected void printPackageFooter()
Print the navigation bar links at the bottom also print the "-bottom" if specified on the command line.

Specified by:
printPackageFooter in class AbstractPackageWriter

navLinkClassUse

protected void navLinkClassUse()
Print "Use" link for this pacakge in the navigation bar.

Overrides:
navLinkClassUse in class HtmlStandardWriter

navLinkPrevious

protected void navLinkPrevious()
Print "PREV PACKAGE" link in the navigation bar.

Overrides:
navLinkPrevious in class HtmlStandardWriter

navLinkNext

protected void navLinkNext()
Print "NEXT PACKAGE" link in the navigation bar.

Overrides:
navLinkNext in class HtmlStandardWriter

navLinkTree

protected void navLinkTree()
Print "Tree" link in the navigation bar. This will be link to the package tree file.

Overrides:
navLinkTree in class HtmlStandardWriter

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.