使用 PlantUML 绘制 UML - PlantUML 语言参考指引(Version 1.2019.6)
Response @enduml 你可以在双引号内指定编号的格式。 格式是由 Java 的 DecimalFormat 类实现的:(0 表示数字;# 也表示数字,但默认为 0)。 你也可以用 HTML 标签来制定格式。 @startuml autonumber "[000]" Bob -> Alice : Authentication Request Bob <- Alice : Authentication allows large description." @enduml 2.4 基础示例 用箭头 --> 连接角色和用例。 横杠 -越多,箭头越长。通过在箭头定义的后面加一个冒号及文字的方式来添加标签。 在这个例子中,User 并没有定义,而是直接拿来当做一个角色使用。 @startuml User -> (Start) User --> (Use the application) : A 关系上的标识 在关系之间使用标签来说明时, 使用 : 后接标签文字。 对元素的说明,你可以在每一边使用 "" 来说明. @startuml Class01 "1" *-- "many" Class02 : contains Class03 o-- Class04 : aggregation Class05 --> "1" Class06 @enduml 在标签的开始或结束位置添加 < 或0 码力 | 174 页 | 1.98 MB | 1 年前3使用 PlantUML 绘制 UML - PlantUML 语言参考指引(Version 1.2019.9)
Response @enduml 你可以在双引号内指定编号的格式。 格式是由 Java 的 DecimalFormat 类实现的:(0 表示数字;# 也表示数字,但默认为 0)。 你也可以用 HTML 标签来制定格式。 @startuml autonumber "[000]" Bob -> Alice : Authentication Request Bob <- Alice : Authentication allows large description." @enduml 2.4 基础示例 用箭头 --> 连接角色和用例。 横杠 -越多,箭头越长。通过在箭头定义的后面加一个冒号及文字的方式来添加标签。 在这个例子中,User 并没有定义,而是直接拿来当做一个角色使用。 @startuml User -> (Start) User --> (Use the application) : A 关系上的标识 在关系之间使用标签来说明时, 使用 : 后接标签文字。 对元素的说明,你可以在每一边使用 "" 来说明. @startuml Class01 "1" *-- "many" Class02 : contains Class03 o-- Class04 : aggregation Class05 --> "1" Class06 @enduml 在标签的开始或结束位置添加 < 或0 码力 | 174 页 | 2.00 MB | 1 年前3PlantUML 1.2020.22 语言参考指引
Response @enduml 你可以在双引号内指定编号的格式。 格式是由 Java 的 DecimalFormat 类实现的:(0 表示数字;# 也表示数字,但默认为 0)。 你也可以用 HTML 标签来制定格式。 @startuml autonumber "[000]" Bob -> Alice : Authentication Request Bob <- Alice : Authentication UC1 fc --> UC2 fc --> UC3 @enduml 2.6 基础示例 用箭头 --> 连接角色和用例。 横杠 -越多,箭头越长。通过在箭头定义的后面加一个冒号及文字的方式来添加标签。 在这个例子中,User 并没有定义,而是直接拿来当做一个角色使用。 @startuml User -> (Start) User --> (Use the application) : A Class24 Class25 }-- Class26 Class27 +-- Class28 Class29 ^-- Class30 @enduml 3.3 关系上的标识 在关系之间使用标签来说明时, 使用 : 后接标签文字。 对元素的说明,你可以在每一边使用 "" 来说明. @startuml Class01 "1" *-- "many" Class02 : contains Class030 码力 | 295 页 | 3.08 MB | 1 年前3使用 PlantUML 绘制 UML - PlantUML 语言参考指引(Version 1.2020.23)
Response @enduml 你可以在双引号内指定编号的格式。 格式是由 Java 的 DecimalFormat 类实现的:(0 表示数字;# 也表示数字,但默认为 0)。 你也可以用 HTML 标签来制定格式。 @startuml autonumber "[000]" Bob -> Alice : Authentication Request Bob <- Alice : Authentication UC1 fc --> UC2 fc --> UC3 @enduml 2.6 基础示例 用箭头 --> 连接角色和用例。 横杠 -越多,箭头越长。通过在箭头定义的后面加一个冒号及文字的方式来添加标签。 在这个例子中,User 并没有定义,而是直接拿来当做一个角色使用。 @startuml User -> (Start) User --> (Use the application) : A Class24 Class25 }-- Class26 Class27 +-- Class28 Class29 ^-- Class30 @enduml 3.3 关系上的标识 在关系之间使用标签来说明时, 使用 : 后接标签文字。 对元素的说明,你可以在每一边使用 "" 来说明. @startuml Class01 "1" *-- "many" Class02 : contains Class030 码力 | 307 页 | 3.17 MB | 1 年前3PlantUML 1.2021.3 语言参考指引
Response @enduml 你可以在双引号内指定编号的格式。 格式是由 Java 的 DecimalFormat 类实现的:(0 表示数字;# 也表示数字,但默认为 0)。 你也可以用 HTML 标签来制定格式。 @startuml autonumber "[000]" Bob -> Alice : Authentication Request Bob <- Alice : Authentication critical • group, 后面紧跟着消息内容 PlantUML 语言参考指引 (1.2021.2) 8 / 397 1.12 次级分组标签 1 时序图 可以在标头 (header) 添加需要显示的文字 (对于 group 关键字,参看下一章节 ’ 次级分组标签’)。 关键词 end 用来结束分组。 注意,分组可以嵌套使用。 @startuml Alice -> Bob: 认证请求 alt group 我自己的标签 Alice -> Log : 开始记录攻击日志 loop 1000次 Alice -> Bob: DNS 攻击 end Alice -> Log : 结束记录攻击日志 end else 另一种失败 Bob -> Alice: 请重复 end @enduml 1.12 次级分组标签 对于 group 而言,在标头处的 [和] 之间可以显示次级文本或标签。 @startuml0 码力 | 398 页 | 4.22 MB | 1 年前3使用 PlantUML 绘制 UML - PlantUML 语言参考指引(Version 1.2021.2)
Response @enduml 你可以在双引号内指定编号的格式。 格式是由 Java 的 DecimalFormat 类实现的:(0 表示数字;# 也表示数字,但默认为 0)。 你也可以用 HTML 标签来制定格式。 @startuml autonumber "[000]" Bob -> Alice : Authentication Request Bob <- Alice : Authentication --> UC1 fc --> UC2 fc --> UC3 @enduml 2.6 基础示例 用箭头--> 连接角色和用例。 横杠-越多,箭头越长。通过在箭头定义的后面加一个冒号及文字的方式来添加标签。 PlantUML 语言参考指引 (1.2021.2) 42 / 380 2.7 继承 2 用例图 在这个例子中,User 并没有定义,而是直接拿来当做一个角色使用。 @startuml Class24 Class25 }-- Class26 Class27 +-- Class28 Class29 ^-- Class30 @enduml 3.3 关系上的标识 在关系之间使用标签来说明时, 使用 : 后接标签文字。 对元素的说明,你可以在每一边使用 "" 来说明. @startuml Class01 "1" *-- "many" Class02 : contains Class030 码力 | 381 页 | 4.05 MB | 1 年前3PlantUML 1.2021.1 语言参考指引
Response @enduml 你可以在双引号内指定编号的格式。 格式是由 Java 的 DecimalFormat 类实现的:(0 表示数字;# 也表示数字,但默认为 0)。 你也可以用 HTML 标签来制定格式。 @startuml autonumber "[000]" Bob -> Alice : Authentication Request Bob <- Alice : Authentication --> UC1 fc --> UC2 fc --> UC3 @enduml 2.6 基础示例 用箭头--> 连接角色和用例。 横杠-越多,箭头越长。通过在箭头定义的后面加一个冒号及文字的方式来添加标签。 PlantUML 语言参考指引 (1.2021.1) 42 / 375 2.7 继承 2 用例图 在这个例子中,User 并没有定义,而是直接拿来当做一个角色使用。 @startuml Class24 Class25 }-- Class26 Class27 +-- Class28 Class29 ^-- Class30 @enduml 3.3 关系上的标识 在关系之间使用标签来说明时, 使用 : 后接标签文字。 对元素的说明,你可以在每一边使用 "" 来说明. @startuml Class01 "1" *-- "many" Class02 : contains Class030 码力 | 376 页 | 4.00 MB | 1 年前3使用 PlantUML 绘制 UML - PlantUML 语言参考指引(Version 1.2019.1)
Response @enduml 你可以在双引号内指定编号的格式。 格式是由 Java 的 DecimalFormat 类实现的:(0 表示数字;# 也表示数字,但默认为 0)。 你也可以用 HTML 标签来制定格式。 @startuml autonumber "[000]" Bob -> Alice : Authentication Request Bob <- Alice : Authentication allows large description." @enduml 2.4 基础示例 用箭头 --> 连接角色和用例。 横杠 -越多,箭头越长。通过在箭头定义的后面加一个冒号及文字的方式来添加标签。 在这个例子中,User 并没有定义,而是直接拿来当做一个角色使用。 @startuml User -> (Start) User --> (Use the application) : A 关系上的标识 在关系之间使用标签来说明时, 使用 : 后接标签文字。 对元素的说明,你可以在每一边使用 "" 来说明. @startuml Class01 "1" *-- "many" Class02 : contains Class03 o-- Class04 : aggregation Class05 --> "1" Class06 @enduml 在标签的开始或结束位置添加 < 或0 码力 | 146 页 | 1.91 MB | 1 年前3PlantUML 1.2019.3 语言参考指引
Response @enduml 你可以在双引号内指定编号的格式。 格式是由 Java 的 DecimalFormat 类实现的:(0 表示数字;# 也表示数字,但默认为 0)。 你也可以用 HTML 标签来制定格式。 @startuml autonumber "[000]" Bob -> Alice : Authentication Request Bob <- Alice : Authentication allows large description." @enduml 2.4 基础示例 用箭头 --> 连接角色和用例。 横杠 -越多,箭头越长。通过在箭头定义的后面加一个冒号及文字的方式来添加标签。 在这个例子中,User 并没有定义,而是直接拿来当做一个角色使用。 @startuml User -> (Start) User --> (Use the application) : A 关系上的标识 在关系之间使用标签来说明时, 使用 : 后接标签文字。 对元素的说明,你可以在每一边使用 "" 来说明. @startuml Class01 "1" *-- "many" Class02 : contains Class03 o-- Class04 : aggregation Class05 --> "1" Class06 @enduml 在标签的开始或结束位置添加 < 或0 码力 | 157 页 | 1.78 MB | 1 年前3PlantUML 1.2019.2 语言参考指引
Response @enduml 你可以在双引号内指定编号的格式。 格式是由 Java 的 DecimalFormat 类实现的:(0 表示数字;# 也表示数字,但默认为 0)。 你也可以用 HTML 标签来制定格式。 @startuml autonumber "[000]" Bob -> Alice : Authentication Request Bob <- Alice : Authentication allows large description." @enduml 2.4 基础示例 用箭头 --> 连接角色和用例。 横杠 -越多,箭头越长。通过在箭头定义的后面加一个冒号及文字的方式来添加标签。 在这个例子中,User 并没有定义,而是直接拿来当做一个角色使用。 @startuml User -> (Start) User --> (Use the application) : A 关系上的标识 在关系之间使用标签来说明时, 使用 : 后接标签文字。 对元素的说明,你可以在每一边使用 "" 来说明. @startuml Class01 "1" *-- "many" Class02 : contains Class03 o-- Class04 : aggregation Class05 --> "1" Class06 @enduml 在标签的开始或结束位置添加 < 或0 码力 | 157 页 | 1.78 MB | 1 年前3
共 97 条
- 1
- 2
- 3
- 4
- 5
- 6
- 10