可以向状态图中添加更多的部分吗?

huangapple go评论52阅读模式
英文:

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

可以向状态图中添加更多的部分吗?

huangapple
  • 本文由 发表于 2023年5月18日 08:28:46
  • 转载请务必保留本文链接:https://go.coder-hub.com/76277003.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定