使用 Graphviz 绘画 UML 图
忽 略一些参数细节。 12 2.7 包 在比较大的系统里,类通常会用包(package)的方式来组织。Graphviz 不能简单还完 UML 包的图形,但可以使用 subgraph cluster 功能去近似地表示类属于那个包。 例如: digraph { graph [fontname="Inconsolata, Consolas", fontsize=10, penwidth=0 Customer } } 13 View Model AccountView Account CustomerView Customer 注意,subgraph 的名字必须以 cluster 为前缀。 2.8 排布技巧 自动排布故然很方便,但有时候我们想做出一些修改。例如,dot 描述的是有向图,从来源节 点指向目标节点时,目标节点就会成为下一级,预设设置下,节点会垂直排列,如以下例子:0 码力 | 20 页 | 331.51 KB | 1 年前3
Drawing UML with PlantUML - PlantUML Language Reference Guide(Version 1.2019.4)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 have two dashes -- and are vertically oriented. It is possible to use horizontal link by putting a single dash (or dot) like this: @startuml :user: --> (Use case 1) :user: -> (Use case 2) @enduml You can abstract classes. But you can define your own spot for a class when you define the stereotype, adding a single character and a color, like in this example: @startuml class System << (S,#FF7700) Singleton >>0 码力 | 167 页 | 1.83 MB | 1 年前3
Drawing UML with PlantUML - PlantUML Language Reference Guide(Version 1.2019.3)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 have two dashes -- and are vertically oriented. It is possible to use horizontal link by putting a single dash (or dot) like this: @startuml :user: --> (Use case 1) :user: -> (Use case 2) @enduml You can abstract classes. But you can define your own spot for a class when you define the stereotype, adding a single character and a color, like in this example: @startuml class System << (S,#FF7700) Singleton >>0 码力 | 159 页 | 1.73 MB | 1 年前3
PlantUML 1.2019.1 Language Reference Guidenote 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 have two dashes -- and are vertically oriented. It is possible to use horizontal link by putting a single dash (or dot) like this: PlantUML Language Reference Guide (1.2019.1) 27 / 147 2.8 Changing arrows abstract classes. But you can define your own spot for a class when you define the stereotype, adding a single character and a color, like in this example: @startuml class System << (S,#FF7700) Singleton >>0 码力 | 148 页 | 1.85 MB | 1 年前3
PlantUML 1.2019.2 Language Reference Guidenote 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 have two dashes -- and are vertically oriented. It is possible to use horizontal link by putting a single dash (or dot) like this: @startuml :user: --> (Use case 1) :user: -> (Use case 2) @enduml You can abstract classes. But you can define your own spot for a class when you define the stereotype, adding a single character and a color, like in this example: @startuml class System << (S,#FF7700) Singleton >>0 码力 | 160 页 | 1.73 MB | 1 年前3
Drawing UML with PlantUML - PlantUML Language Reference Guide(Version 1.2019.9)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 have two dashes -- and are vertically oriented. It is possible to use horizontal link by putting a single dash (or dot) like this: @startuml :user: --> (Use case 1) :user: -> (Use case 2) @enduml You can abstract classes. But you can define your own spot for a class when you define the stereotype, adding a single character and a color, like in this example: @startuml class System << (S,#FF7700) Singleton >>0 码力 | 175 页 | 1.95 MB | 1 年前3
PlantUML 1.2019.6 Language Reference Guidenote 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 have two dashes -- and are vertically oriented. It is possible to use horizontal link by putting a single dash (or dot) like this: @startuml :user: --> (Use case 1) :user: -> (Use case 2) @enduml You can abstract classes. But you can define your own spot for a class when you define the stereotype, adding a single character and a color, like in this example: @startuml class System << (S,#FF7700) Singleton >>0 码力 | 174 页 | 1.92 MB | 1 年前3
Drawing UML with PlantUML - PlantUML Language Reference Guide(Version 1.2023.11)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 have two dashes -- and are vertically oriented. It is possible to use horizontal link by putting a single dash (or dot) like this: @startuml :user: --> (Use case 1) :user: -> (Use case 2) @enduml You can abstract classes. But you can define your own spot for a class when you define the stereotype, adding a single character and a color, like in this example: @startuml class System << (S,#FF7700) Singleton >>0 码力 | 551 页 | 7.79 MB | 1 年前3
PlantUML 1.2021.3 Language Reference Guidenote 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 have two dashes -- and are vertically oriented. It is possible to use horizontal link by putting a single dash (or dot) like this: @startuml :user: --> (Use case 1) :user: -> (Use case 2) @enduml You can abstract classes. But you can define your own spot for a class when you define the stereotype, adding a single character and a color, like in this example: @startuml class System << (S,#FF7700) Singleton >>0 码力 | 416 页 | 4.33 MB | 1 年前3
PlantUML 1.2021.1 Language Reference Guidenote 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 have two dashes -- and are vertically oriented. It is possible to use horizontal link by putting a single dash (or dot) like this: @startuml :user: --> (Use case 1) :user: -> (Use case 2) @enduml You can abstract classes. But you can define your own spot for a class when you define the stereotype, adding a single character and a color, like in this example: @startuml class System << (S,#FF7700) Singleton >>0 码力 | 392 页 | 4.12 MB | 1 年前3
共 98 条
- 1
- 2
- 3
- 4
- 5
- 6
- 10













