Frame element support

0 votes
asked Jul 16, 2013 in Wanted features by hank (140 points)

I'm generating sequence diagram with plantuml. It's all fine but lack of support to "Frame element", like notation in figure 1 at http://www.ibm.com/developerworks/rational/library/3101.html. Since your tool supports things like opt, alt ..., Frame element may be not easy to implement for you. Could you add it?

Another issue is that text in sequence box is not default to be underlined. Could you set it to default or add a global option to set it?

And I would also thank you for creating such an amazing tool! Even visio is available for me, I prefer to your tool!

commented Feb 28, 2018 by Anthony-Gaudino (5,720 points)
What OP wants is a frame around the whole diagram.

Usually this frame has the diagram name/code.

2 Answers

0 votes
answered Jul 23, 2013 by plantuml (295,000 points)

In version 7972, you can use this :

@startuml
skinparam sequenceParticipant underline
Alice -> Bob : hello
@enduml

 

Not sure to understand your request about Frame : are you talking about somethink like http://plantuml.sourceforge.net/sequence.html#Reference ?

commented Jul 26, 2013 by hank (140 points)
I tried latest version (7973). It works.
But for "frame element", its shape is just what a ref looks like. And it is not only used for ref/alt/opt, but also used as graphical boundary for whole diagram. You can see sample for this at "Fig. 2" in http://www.ibm.com/developerworks/rational/library/3101.html.

Thanks
0 votes
answered Sep 24, 2017 by anonymous
The following code snippet does pretty much that.
@startuml

group "frame"

Alice->Bob: Sup Bruh?

end

@enduml
...