How can i limit the width of notes , in activity diagram

0 votes
asked Mar 15, 2021 in Question / help by escovedo (140 points)
Hi , I'm newbie on Plantuml and trying to draw some activity diagrams in swimlanes.

When i put some notes on some activity, depending on the length of notes, the box could get too wide and it makes swimlanes too wide to see them at a glance.

My question is if i can limit the width of notes attached to activity boxes by defining style or something like that.

Your tips will be highly appreciated.

1 Answer

0 votes
answered Mar 15, 2021 by The-Lu (63,920 points)
selected Mar 15, 2021 by escovedo
 
Best answer

Hello E.,

A first workaround will be to add:

skinparam wrapWidth 100

With that we can observed the expected result:

If that can help,
Regards,
Th.

commented Mar 15, 2021 by escovedo (140 points)

Hi The-Lu

Thanks a lot for your quick help.smiley

It works well as far as I am using normal characters. 

I also found that it doesn't work well when it is used with Japanese characters.

Maybe this is seen only in my special environment (= Japanese environment). 

http://www.plantuml.com/plantuml/png/jP6zJiCm58LtFyLH9c1nsn5ALSJ2KBPAp4viOelatiY-m98bAWC3ua5u1jucBu9h2I6n8YpBz_Z8Fz_HtIOnKHxxJgM7G8E9fiTpDCDTiEAnN2pKUDK8Hon7LOwgytlcvOKY5eSOMYyAcAUFUNgR3v__EAUN-V1UzAjoP744-8PRZGLhzGjhnzJ-VIaV0NiVKj78bGd9FRbeEWLetGLoIMiOicWCPQzX4XC8wtfpix_ThNMzoUvb7hcSuTfq-KuByGwz4yyMLPKJd9nMrV7z8R8FTH1dVx8cuK5jypPtwmi0

commented Mar 15, 2021 by The-Lu (63,920 points)

Hello E.,

For that you could add some secable/breakable places, as space...

Regards,
Th.

commented Mar 15, 2021 by escovedo (140 points)
The-Lu, thanks a lot.

Ok, plantuml interpret spaces as breakable place, it is good workaround.

In my language, we are not putting spaces at boundary of words, then it would be perfect if plantuml support MaximumWidth for note, as you already kindly requested in other ticket.

Thanks again.
commented Oct 27, 2021 by kirchsth (4,880 points)
deleted, wrong issue
...