Astah User's Guide

Class

Create a Class

There are three ways to create Classes.

  1. Double-click on a Class Diagram
  2. Choose [Class] on the tool palatte and click on a diagram
  3. Create from a pop-up menu in the Structure Tree
TIPS: Create Classes by importing texts!
You can also create classes by pasting texts from the Clipboard!


Add Attributes

There are three ways to add Attributes.

  1. Click [Add Attribute] from Class's Pop-up menu on diagram
  2. Create from Classe's pop-up menu in the Structure Tree
  3. Click [Add] button from Class's Property View
TIPS: Use Suggest Feature
You can add Attribute by one-click if you use Suggest Feature.


Set Attribute's Default Type

You can set a default attribute type.

  1. Go to [Tools - [System Properties].
  2. Choose [UML] from left menu and enter the type, then go to [Apply] - [OK].


Add Operations

There are three ways to add Operations.

  1. Click [Add Operation] from Class's Pop-up menu on Class Diagram.
  2. Create from Classe's pop-up menu in the Structure Tree
  3. Click [Add] button from Class's Property View


TIPS: Hit [Enter] to add more Attributes/Operations
1: If you hit [Enter] key while either attribute/operation is selected, it creates another.
2: If you hit [Shift+Enter] while either attribute/operation is selected, it creates another above the selected attribute/operation.


Set parameter default type

You can set default parameter type.

  1. Go to [Tools] - [System Properties].
  2. Choose [UML] from left menu and set deafult type and click [Apply] - [OK].


Move Attributes/Operations

You can move around attributes/operations by dragging them to another class or within a class.



TIPS: Use Shortcut keys
If you want to change order of attributes/operations, use shortcut keys - Ctrl+UP / Ctrl+DOWN.


Template Class

You can create Template Class by adding Template Parameters to a class. There are two ways to do so.

  1. Select [Add Template Parameter] from Class's Pop-up menu
  2. Add from [Template Parameter] tab in Class's Property View

Bound Class

You can create a bound class by adding Template Binding between a class and Template Class.


Anonymous Bound Class

You can create an anonymous bound class by deleting a name of Bound Class.

Specify Anonymous Bound Class

Anonymous Bound Classes can be specified to the following:

      
  • Attribute Type
  •   
  • Operation Return Value
  •   
  • Operation Parameter Type
  •   
  • Target of Association End A and Association End B
  •   
  • Base Class of Intstance Specification in Class
  •   
  • Base Class of Object Node in Activity Diagram
  •   
  • Base Class of Lifeline in Sequence Diagram and Communicatio Diagram