Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Mastering UML with Rational Rose 2002.pdf
Скачиваний:
137
Добавлен:
02.05.2014
Размер:
9.68 Mб
Скачать

Chapter 2: A Tour of Rose

Sequence diagrams

Collaboration diagrams

Statechart diagrams

Class diagrams

Component diagrams

Deployment diagrams

The Use Case view typically includes Use Case diagrams, Activity diagrams, Sequence diagrams, and Collaboration diagrams. When you create a new Rose model, one Use Case diagram called "Main" is automatically created in the Use Case view. This diagram cannot be removed.

The Logical view typically contains Sequence diagrams, Collaboration diagrams, Class diagrams, and Statechart diagrams. In a new Rose model, one Class diagram called "Main" is automatically created for you in the Logical view. The Component view contains one or more Component diagrams, while the Deployment view contains a Deployment diagram. There is only one Deployment diagram per system.

To add a new diagram:

1.

Right−click a package in the browser. The new diagram will be added underneath the package you have right−clicked.

2.

Select New → <diagram type>.

3.

Type the name of the new diagram.

4.

Double−click the new diagram to open it.

5.

To delete a diagram, right−click it in the browser and select Delete. Note that although the diagram is deleted, the model elements, such as classes or use cases that were on the diagram, are not deleted.

Setting Global Options

Options such as the font and color are used for all model objects, including classes, use cases, interfaces,

57

Chapter 2: A Tour of Rose

packages, and so on. In this section, you will learn how to change the fonts and colors for model objects. You can set the default fonts and colors by using the Tools → Options menu item.

Working with Fonts

In Rose, you can change the font of individual objects on a diagram, which can improve the readability of your model. Fonts and font sizes are set using the Font window shown in Figure 2.21.

Figure 2.21: Font Selection window

To set the font or font size of an object on a diagram:

1.

Select the desired object or objects.

2.

Select Format → Font from the menu.

3.

Select the desired font, style, and size.

Working with Colors

In addition to changing the fonts, the colors of objects can be individually changed. You can change the line color and fill color for an object by using the Color window in Figure 2.22.

58