PyCharm 2019.3 Help

Class Diagram Toolbar, Context Menu and Legend

For information on how to use the UML class diagram, refer to Viewing Class Hierarchy as a Class Diagram .

Toolbar

Item

Description

Fields

Click this button to show fields in the class nodes.

Methods

Click this button to show methods in the class nodes.

inner class

Click this button to show inner classes in the class nodes.

Zoom In

Click this button to increase the scale of the diagram, or press NumPad+.

Zoom Out

Click this button to decrease the scale of the diagram, or press NumPad-.

Actual Size

Click this button to restore the actual size of the diagram.

Fit Content

Click this button to make the contents fit into the current diagram size.

Apply Current Layout

Click this button to apply the current layout, selected from the context menu of the diagram, or press F5.

Save diagram

Click this button to save the current diagram as a UML file.

Export to file

Click this button to save the diagram in an image file.

Print Graph

Click this button to print the diagram.

This section describes only those context menu commands that are not available from the toolbar.

Item

Shortcut

Description

Add class to diagram

Space

Choose this command to add existing class to the diagram background.

Collapse nodes

C

Choose this command to show the containing package of the selected node.

Expand nodes

E

Choose this command to show class diagram of the selected package.

New

Alt+Insert

Choose this command to create a new node element or member.

Refactor

Point to this node to select one of the refactoring commands available in this context.

Analyze

Point to this node to select one of the code analysis commands available in this context.

Legend of the Class Diagram

PyCharm follows the UML conventions in showing relationships between the classes.

Besides that, PyCharm supports the following colors and arrows:

Item

Description

extends

The blue arrow corresponds to the class extension.

Last modified: 2 April 2020