To create a new UML Class Diagram:

A new Class Diagram canvas will appear in the editor.
Astah can automatically generate Class Diagrams from Packages. This is useful when you want a quick visualization of an existing model or imported source code.
If you are working with source code, import it first:

You can choose from three presentation options.
Generates a diagram containing Classes only. Attributes and operations are not displayed.
Generates a diagram including classes, attributes, and operations.
Generates a diagram including all models inside the selected package and its subpackages.
There are five different ways to create a Class in the Diagram Editor. For a full list, refer to the Diagram Editor documentation.
A Template Class allows you to define template parameters (generics).
You can add template parameters in two ways:


Attributes represent the data fields of a Class.
You can create attributes using:
Hover over a Class and click the orange diamond.
When an attribute is selected, press Enter to create another.
You can paste copied text to create multiple attributes at once.
To show or hide attributes:

You can create Operations by hovering over a Class and clicking the green bar that appears.
Another way is to press the [Enter] key while an operation is selected.
Attributes and operations can be moved by dragging them within a class or to another class.
Since version 8.5, you can add Operations by pasting copied text.

You can create an anonymous bound class by deleting the name of a Bound Class.
Anonymous Bound Classes can be specified to the following:




You can nest a class within a package by dragging it into the package.
Since version 10.0, creating Enumerations is simpler:
1. Choose [Enumeration] from the Class drop-down menu on the tool palette.

2. Click on a diagram editor to place it.

There are three ways to create Enumeration Literals.
1. Using Draw Suggest:
Hover over and Enumeration and click the purple mini bar to add a new enumeration literal.
2. Using Context Menu:
Right-click on an Enumeration and select [Add Enumeration Literal].

3. From Property view:
Select an Enumeration, then in the property view(bottom-left pane), click [Enumeration Literal] tab and click [+].
To create associations, hover over a Class, select the appropriate association type from the icons, and click the target models. For more details, see the “Drawing Lines” section.
You can navigate to the Association ends by right-clicking the association line and selecting [Move to related element].
If association names drift from the line, right-click the line and select [Init Label Position] to reset the label’s position.


Astah will place the Association Class between them.