Is it possible to control the text flow of messages in sequence diagrams over other life lines?

0 votes
asked Jan 18 in Question / help by Peter (120 points)
Can I control the text flow of messages in sequence diagrams over other life lines?

Default, the width of the space a life line occupies in the rendered sequence diagram is influenced dramatically by the length of the text used for the messages. I know I can split the message and use several lines, but this increases the height of the sequence diagram.

Basically, I would like the text used for a message not to influence the width of the life line.

Is there any skin parameter for that?

1 Answer

0 votes
answered Jan 18 by plantuml (200,620 points)

Yes, you can have

@startuml
skinparam maxMessageSize 100
Alice -> Bob : this is a very long sentence on one single line
@enduml

http://www.plantuml.com/plantuml/uml/5Sqn2a8n44NHFgju6n2-hOL4UojNCEeZ3aucaecYhjvyEEM5csD87wzgAHxgJ-bIKULpOeGKdlL7R9Sb7Koln6QFOxjWXt7Nm2HuitzXpGk2FkYpQZuHeLwCC7McJB-jZpy0

Is this what you are looking for ?

commented Jan 30 by Peter (120 points)
That is exaclty what I need! Thanks
...