![]() |
非常酷的红茶 · 受験生向け | 東北大学天文学教室 理学部 ...· 2 周前 · |
![]() |
要出家的煎饼果子 · bilibili机构认证:拉瑞安工作室官方账号· 1 年前 · |
![]() |
不羁的硬盘 · ATP世界巡回赛_百度百科· 1 年前 · |
![]() |
强健的四季豆 · 活塞式航空发动机_百度百科· 2 年前 · |
![]() |
含蓄的斑马 · RICOCHET ...· 2 年前 · |
Use Case Diagram
Use cases are enclosed using between parentheses (because two parentheses looks like an oval).
|
🎉 Copied!
|
![]() |
The name defining an actor is enclosed between colons.
You can also use the
actor
keyword to define an actor. An alias can be assigned using the
as
keyword and can be used later instead of the actor's name, e. g. when defining relations.
You can see from the following examples, that the actor definitions are optional.
🎉 Copied!
|
![]() |
You can change the actor style from stick man (by default) to:
skinparam actorStyle awesome
command;
skinparam actorStyle hollow
command.
🎉 Copied!
|
![]() |
🎉 Copied!
|
![]() |
[Ref. QA-10493 ]
🎉 Copied!
|
![]() |
[Ref. PR#396 ]
If you want to have a description spanning several lines, you can use quotes.
You can also use the following separators:
--
(dashes)
..
(periods)
==
(equals)
__
(underscores)
By using them pairwise and enclosing text between them, you can created separators with titles.
🎉 Copied!
|
![]() |
You can use packages to group actors or use cases.
🎉 Copied!
|
![]() |
You can use
rectangle
to change the display of the package.
🎉 Copied!
|
![]() |
To link actors and use cases, the arrow
-->
is used.
The more dashes
-
in the arrow, the longer the arrow. You can add a label on the arrow, by adding a
:
character in the arrow definition.
In this example, you see that User has not been defined before, and is used as an actor.
🎉 Copied!
|
![]() |
If one actor/use case extends another one, you can use the symbol
<|--
.
🎉 Copied!
|
![]() |
You can use the
note left of
,
note right of
,
note top of
,
note bottom of
keywords to define notes related to a single object.
A note can be also define alone with the
note
keywords, then linked to other objects using the
..
symbol.
🎉 Copied!
|
![]() |
You can add stereotypes while defining actors and use cases using
<<
and
>>
.
🎉 Copied!
|
![]() |
By default, links between classes have two dashes
--
and are vertically oriented. It is possible to use horizontal link by putting a single dash (or dot) like this:
🎉 Copied!
|
![]() |
You can also change directions by reversing the link:
🎉 Copied!
|
![]() |
It is also possible to change arrow direction by adding
left
,
right
,
up
or
down
keywords inside the arrow:
🎉 Copied!
|
![]() |
You can shorten the arrow by using only the first character of the direction (for example,
-d-
instead of
-down-
) or the two first characters (
-do-
).
Please note that you should not abuse this functionality : Graphviz gives usually good results without tweaking.
And with the
left to right direction
parameter:
🎉 Copied!
|
![]() |
The
newpage
keywords to split your diagram into several pages or images.
🎉 Copied!
|
![]() |
The general default behavior when building diagram is top to bottom .
🎉 Copied!
|
![]() |
You may change to
left to right
using the
left to right direction
command. The result is often better with this direction.
🎉 Copied!
|
![]() |
You can use the skinparam command to change colors and fonts for the drawing.
You can use this command :
You can define specific color and fonts for stereotyped actors and usecases.
🎉 Copied!
|
![]() |
🎉 Copied!
|
![]() |
You can add
/
to make Business Use Case.
🎉 Copied!
|
![]() |
🎉 Copied!
|
![]() |
[Ref. QA-12179 ]
You can change the color or style of individual arrows using the inline following notation:
#color;line.[bold|dashed|dotted];text:color
🎉 Copied!
|
![]() |
[Ref. QA-3770 and QA-3816 ] [See similar feature on deployment-diagram or class diagram ]
You can change the color or style of individual element using the following notation:
#[color|back:color];line:color;line.[bold|dashed|dotted];text:color
🎉 Copied!
|
![]() |
[Ref. QA-5340 and adapted from QA-6852 ]
🎉 Copied!
|
![]() |
[Ref. QA-15481 ]
For another example, see on JSON page .