Centering Ticket and Change Boxes Between Swimlanes in PlantUML

0 votes
asked Feb 26 in Wanted features by htz9898 (120 points)

I want to find a way to center the ticket box and change box within the divider lines between the Commuter and Ticket Vending Machine swimlanes. Can someone help me. 

Diagram in the online editor:
https://www.plantuml.com/plantuml/uml/bP9DRi8m48NtFiKiuGfaGvjALNUeoQQgM5Z918yIZrF_WAXo-Df4o0KLAbPndE-zRqRAsdbfVT2345Dfj0uUxIJ4wLQ8LPMUKA5pPBY8J4rDZnxso2tn3hHi535E4Nt7hu3EGsrfX3VkJ75PkTfOiwSMCt2tB-5DzFx6isGZZnhPtr2SFpzWoONKBPRW5J8iFXjfMpYGLp3AutOPcvubzodt5BmobhuHoiJaE0uEOpBoSx2HJgLaKdTtHtaXDoB7z8oaTUVJzchBL_IPkLbuiSWegStpWEJpcvAympHVrfUdkwIVJt_eC_F_MfKo1wWZtyE72SNrVsP68TOn5VJm0m00

@startuml

|Commuter|

start

:Start Session;

|Ticket vending machine|

:Request Trip Info;

|Commuter|

:Provide Trip Info;

|Ticket vending machine|

:Process Trip Info;

:Request Payment;

|Commuter|

:Provide Payment Info;

|Ticket vending machine|

:Process Payment;

if() then ([card with pay])

|Bank|

:Authorize Card Payment;

else ([pay with cash])

endif

|Ticket vending machine|

:Dispense Ticket;

:Ticket]

|Commuter|

:Get Ticket;

|Ticket vending machine|

if() then ([paid with cash and with change])

:Dispense Change;

:Change]

|Commuter|

:Get Change;

endif

|Ticket vending machine|

:Show Thank You;

|Commuter|

stop

@enduml

1 Answer

0 votes
answered Feb 26 by The-Lu (70,400 points)
selected Feb 26 by htz9898
 
Best answer

Hello H., and all,

1/ To center, just change label from:

[paid with cash and with change]

to

[paid with cash\nand with change]

2/ And for the second point:

  • What is your request?
  • Which box would do like to change?

If that can help,
Regards,
Th.

commented Feb 26 by htz9898 (120 points)

I'm sorry if my question caused confusion, but the image below is what I desire

commented Feb 26 by The-Lu (70,400 points)
Hi H.,

Thanks for the precision, and the image.

That is not yet explicitly possible.
But that will be a wanted feature...

Regards,
Th.
commented Feb 26 by The-Lu (70,400 points)

Here is a simple current workaround:

commented Feb 26 by htz9898 (120 points)
Hi Th

Thank you very much

Regrads,
H
...