【微知】plantuml在泳道图中如何将多个泳道框起来分组并且设置颜色?(box “浏览器“ #LightGreen endbox)

泳道分组并且着色

分组用 box和endbox ,颜色用#xxx,标注用"xxx"

bash 复制代码
box "浏览器" #LightGreen
participant "浏览器1" as Browser
participant "浏览器2" as Browser2
endbox

participant "服务端" as Server #orange

未修改前:

修改后:

效果:可见图中浏览器1和浏览器2放到了一起,并且叫浏览器的title

bash 复制代码
@startuml

autonumber

actor "用户" as User

box "浏览器" #LightGreen
participant "浏览器1" as Browser
participant "浏览器2" as Browser2
endbox

participant "服务端" as Server #orange

activate User

User -> Browser: 输入 URL
activate Browser

Browser -> Server: 请求服务器
activate Server

Server -> Server: 模板渲染
note right of Server: 这是一个注释

Server -> Browser: 返回 HTML
deactivate Server

Browser --> User

@enduml
相关推荐
小沈同学呀2 个月前
Java UML 类图绘制解析:结构与工具类型详解
java·开发语言·uml·plantuml
Just_Paranoid3 个月前
PlantUML 入门使用指南
uml·建模·plantuml·类图·用例图·序列图
geocat3 个月前
plantuml的picoweb无法渲染分页图表的问题
vscode·plantuml
morning_judger3 个月前
【PlantUML系列】状态图(六)
plantuml
morning_judger3 个月前
【PlantUML系列】流程图(四)
流程图·plantuml
巽星石5 个月前
PlantUML中的实体关系图
uml·plantuml·er图
Dnelic-7 个月前
【笔记】PUML语法使用
插件·思维导图·plantuml·puml·时序图·活动图·mindmap
来一杯龙舌兰8 个月前
PlantUML-UML 绘图工具安装、Graphviz安装、本地使用/在线使用、语法、图示案例
uml·绘图工具·plantuml·时序图·开发绘图