英文:
Can I add more sections to state in state diagram?
问题
每个状态图中的状态都有2个部分,顶部是状态名称,底部包含所有状态属性。例如,对于以下内容:
@startuml
Bob:aaa
Bob:bbb
Bob -> Alice
@enduml
该图中底部部分有“aaa”和“bbb”。
我可以将更多部分添加到一个状态吗?或者添加一些分隔线吗?基本上,我想更清晰地分隔上面示例中的“aaa”和“bbb”。
英文:
Each state in the state diagram has 2 sections, the top one is state name and bottom has all the state attributes. For example, for the following:
@startuml
Bob:aaa
Bob:bbb
Bob -> Alice
@enduml
The diagram has "aaa" and "bbb" in the bottom section.
Is it possible I can add more sections to a state? Or some divider lines? Basically I want to separate "aaa" and "bbb" in the above example more clearly.
答案1
得分: 0
Using the hints about Class bodies at https://plantuml.com/class-diagram#08ca680401eefe3a, you can try the following separators:
@startuml
Bob:aaaaaaaaaaaa
Bob:....
Bob:bbb
Bob:ccccc
Bob:====
Bob:dddd
Bob:----
Bob:eeeeeeee\n====\nfffff
Bob -> Alice
@enduml
英文:
Using the hints about Class bodies at https://plantuml.com/class-diagram#08ca680401eefe3a, you can try the following separators:
@startuml
Bob:aaaaaaaaaaaa
Bob:....
Bob:bbb
Bob:ccccc
Bob:====
Bob:dddd
Bob:----
Bob:eeeeeeee\n====\nfffff
Bob -> Alice
@enduml
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论