IntelliJ IDEA 2020.3 Help

Class diagram toolbar, context menu, and legend

For information on how to use the UML class diagram, refer to UML class diagrams.

Toolbar

ItemDescription
FieldsClick this button to show fields in the class nodes.
ConstructorsClick this button to show constructors in the class nodes.
MethodsClick this button to show methods in the class nodes.
propertyClick this button to show properties in the class nodes.
inner classClick this button to show inner classes in the class nodes.
visibility levelClick this button to reveal the combo box, and select visibility level of the elements to be displayed in a diagram.
scopeClick this button to reveal the combo box, and select the desired scope of elements to be displayed in diagram, for example, project or non-project files. The elements out of the selected scope will be hidden.
the Edge Creation mode buttonClick this button to enable creating extends or implements links between node elements. If this button is not pressed, links cannot be drawn.
show dependenciesClick this button to show dependencies of the selected class or package.
Zoom InClick this button to increase the scale of the diagram, or press NumPad+.
Zoom OutClick this button to decrease the scale of the diagram, or press NumPad-.
Actual SizeClick this button to restore the actual size of the diagram.
Fit ContentClick this button to make the contents fit into the current diagram size.
Apply Current LayoutClick this button to apply the current layout, selected from the context menu of the diagram, or press F5.
Save diagramClick this button to save the current diagram as a UML file.
Export to fileClick this button to save the diagram in an image file.
PrintClick this button to print the diagram.

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

ItemShortcutDescription
Add class to diagramSpaceChoose this command to add existing class to the diagram background.
Collapse nodesCChoose this command to show the containing package of the selected node.
Expand nodesEChoose this command to show class diagram of the selected package.
NewAlt+InsertChoose this command to create a new node element or member.
RefactorPoint to this node to select one of the refactoring commands available in this context.
AnalyzePoint to this node to select one of the code analysis commands available in this context.

Legend of the Class Diagram

IntelliJ IDEA follows the UML conventions in showing relationships between the classes.

Diagram editor

Besides that, IntelliJ IDEA supports the following colors and arrows:

ItemDescription
implements
The green arrow corresponds to the implements clause in a class declaration.
extends
The blue arrow corresponds to the extends clause in a class declaration.
inner class
This sign appears for the inner classes.
Last modified: 08 March 2021