Astah User's Guide

Class Diagram


class-diagram


Create

Go to [Diagram] - [Class Diagram] to create a Class diagram.

Create a new UML Class Diagram

TIPS: Create Object Diagram
You can create Object Diagram, Package Diagram and Robustness Diagram using Astah's Class Diagrams



Class Diagram Tool Palatte

This is the tool palatte of Class Diagram, for all the common tools, check out here.

Class Diagram Toolbar

ButtonItem
SelectSelect
ClassClass
PackagePackage
SubsystemSubsystem
NestNest
AssociationAssociation
Association ClassAssociationClass
GeneralizationGeneralization
ButtonItem
RealizationRealization
DependencyDependency
InterfaceInterface
EntityEntity
BoundaryBoundary
ControlControl
InstanceSpecificationInstanceSpecification
LinkLink



Create a Class

Just double-click on a diagram to create a Class!

TIPS: Create Classes by importing texts!
You can also create classes by pasting texts from the Clipboard!


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


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].


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.


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

Package

Create a Package

There are two ways to create a Package.

  1. Select [Package] on the tool bar, then click on a diagram.
  2. Select [Add Package] on the Structure Tree


Show name in body

Package

The display/non-display settings for a Package Name can be selected from the Pop-up Menu.

Package
TIPS: Default Setting
You can set the default setting for package name display in the System Properties.


Nest Class

  1. You can drag and drop a class inside a package on the diagram.
    Package
  2. A Class will be included in the Package on the diagram.
    Package
  3. A nest relation is created, so when you take a class out of a package, it'll be connected with a nest line.
    Package


Subsystem

Create a Subsystem

There are two ways to create Subsystem.

  1. Select [Subsystem] on the tool bar, then click on a diagram.
  2. Select [Subsystem] on the Structure Tree


Add Operations to Subsystem

There are two ways to add Operations to Subsystem.

  1. From Pop-up menu of SusbSystem on the Diagram
    Operation in Subsystem
  2. From Structure Tree
    Click [Operation] in the Structure tree.
    Operation in Subsystem

To show the operation on diagram, you need to turn the subsystem Detail Visibility mode.


Operation in Subsystem


Detail Visibility

To show detailed information about the Subsystem, click [Detail Visibility] on the SubSystem's pop-up menu.
Subsystem Details


All the information appears on the Subsystem.
Subsystem Details


Nest

There are two ways to create a Nest.

  1. Select [Nest] on the tool bar, then click on a diagram.
  2. Select [Nest] on the Structure Tree

Nest