VisualAge for Java gives you several options for printing
program elements. You can print projects, packages, classes,
interfaces, or methods. When you print a program element that is
composed of other program elements, you have the option of printing these
other program elements. For example, when you print a package, you can
also print the classes in the package.
To print a program element:
- Select the program element. Select Document and then
Print from its pop-up menu. The Print dialog appears:

- The items that you can select to print depend on what kind of program
element you are printing:
- Selections under Projects are available if you are printing a
project.
- Selections under Packages are available if you are printing a
project or a package.
- Selections under Types are available if you are printing a
project, package, class, or interface.
- Selections under Methods are always available.
- By default, all the items under Projects, Packages,
and Types are selected, and Entire Method is selected
under Methods. Change these selections if you want and
select OK to start printing.
- If no default printer has been selected, a message appears asking you to
select one.
You can change the default printer or change a printer's setup by
selecting Print Setup from the File menu of any
window.
You can print a graph view of a class hierarchy for a project or a
package. The output goes to the default printer. To print a
class hierarchy graph:
- In the Workbench or another browser, select the project or package for
which you want to print the graph.
- From the element's pop-up menu, select Open To and then
Classes. This opens the Classes page of a browser on the
project or package.
- In the Class Hierarchy pane title bar, click
the Graph Layout button.
- From the Class Hierarchy pane's pop-up menu, select
Document and then Print Graph. The graph showing
the inheritance of each class is output to the default printer.
