The inheritance graph uses different color nodes to display JavaTM classes and Java interface types. The colors depend on the desktop scheme you are using. A solid line between nodes represent an "extends" relationship, where a class inherits fields from its parent. A dashed line between nodes represents an "implements" relationship, where the class defines the methods specified in the interface.
To display a class in more detail, double-click the class to view it in the Class card. You can also get more information on the class by choosing a query from the right-mouse-button menu.
You can change the view of the graph in the following ways:
If you choose to view a smaller portion of the graph, right-facing arrows appear on class nodes to show you that some classes are not displayed in the current view.
Menu Item | Description |
Show Source | Displays the class definition in the Source panel. |
Show Class | Displays the class in the Class card. You can also double-click a class to display it in the Class card. |
List Declared Methods | Displays the methods in the Query card that are declared by the selected class. Double-clicking a method in the Query card displays the source for the method in the Source panel. Note that if you do not define an init method, and the compiler generates a default init method, and Cosmo Code displays this with the query results. Double-clicking the init method in the Query card shows the class definition in the source panel. |
List Declared Variables | Displays the variables in the Query card that are declared by the selected class. Double-clicking the variable in the Query card displays the source for the variable in the Source panel. |
Show Only Subgraph | Hides all parents and displays only the children of the selected node. |
Show Butterfly | Displays the immediate parents and children of the selected class. |
Show Only Related Nodes | Displays only the nodes related to the currently selected node. |
Hide Node | Hides the selected node in the graph. |
Hide Children | Hides all the children of the node, and displays a right-facing arrow to show that information has been hidden. Use Show Children to access the hidden nodes. |
Show Children | Displays all the classes or interface types that inherit from the selected node. |
Show Parents | Displays the class and interface type(s) that the selected node inherits from. |
Element | Description |
Zoom menu | Provides an option menu that allows you to scale the graph to ranges between 15% and 200% of the normal (100%) size. |
Zoom Out | Provides a detailed look at an area of the graph by resetting the scale of the graph to the next available smaller size in the range. |
Zoom In | Provides a wider coverage of the graph area by resetting the scale of the graph to the next available larger size in the range. |
Pan Graph | Displays the Pan Graph window, which lets you view the entire graph at a reduced scale using a movable viewport that lets you select the portion of the graph displayed in the main window. The Pan Graph window also has an Admin menu with these three selections:
|
Layout Graph | Redraws the graph, restoring the positions of any nodes that were repositioned. |
Rotate Graph | Toggles between vertical (calling nodes at the top) and horizontal (calling nodes at the left) tree orientation. |
Displays a list of classes organized by package:
To display a class in more detail, double-click the class to view it in the Class card. You can also get more information on the class by choosing a query from the right-mouse-button menu.
Menu Item | Description |
Show Source | Displays the source code in the Source panel. |
Show Class | Displays the class in the Class card. You can also double-click a class to display it in the Class card. |
List Declared Methods | Displays the methods in the Query card that are declared by the selected class. Double-clicking a method in the Query card displays the source for the method in the Source panel. |
List Declared Variables | Displays the variables in the Query card that are declared by the selected class. Double-clicking the variable in the Query card displays the source for the variable in the Source panel. |
Guide to the Cosmo Code Development Environment
12-96*268