Printing program elements

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:

  1. Select the program element and select Document, Print from its pop-up menu. The Print dialog.

  2. The items that you can select to print depend on what kind of program element you are printing:
  3. 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.
  4. If no default printer has been selected, a message appears asking you to select one.

Changing the default printer

You can change the default printer or change a printer's setup by selecting Print Setup from the File menu of any window.

Printing the Graph of a Class Hierarchy

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:

  1. In the Workbench or another browser, select the project or package for which you want to print the graph.
  2. From the element's pop-up menu, select Open To, Classes.   This opens the Classes page of a browser on the project or package.
  3. In the Class Hierarchy pane title bar, click the Graph Layout button tgraphb.gif (890 bytes).
  4. From the Class Hierarchy pane's pop-up menu, select Document, Print Graph. The graph, showing the inheritance of each class, will be output to the default printer.