Login
Remember
Register
PlantUML Q&A
All Activity
Questions
Hot!
Unanswered
Tags
Users
Ask a Question
Ask a Question
Center text in activity diagram.
0
votes
asked
Apr 25, 2017
in
Wanted features
by
ddecock
(
140
points)
I would like to center the text on arrows in an activity diagram Now it is always alligned with the starting activity.
Your comment on this question:
Your name to display (optional):
Email me at this address if a comment is added after mine:
Email me if a comment is added after mine
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please
log in
or
register
.
Your answer
Your name to display (optional):
Email me at this address if my answer is selected or commented on:
Email me if my answer is selected or commented on
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
[Antispam2 Feature: please please wait 1 or 2 minutes (this message will disappear) before pressing the button otherwise it will fail]
(--------)
To avoid this verification in future, please
log in
or
register
.
1 Answer
0
votes
answered
Apr 25, 2017
by
plantuml
(
296,000
points)
Ok, could you provide a short example? It would be easier to better understand the need.
Thanks!
commented
Apr 26, 2017
by
ddecock
(
140
points)
Hi,
this is an example:
@startuml
skinparam arrow {
MessageAlign center
}
|Customer|
|Sales|
:**SEND** report
to customer;
->in big envelop;
|Customer|
:**RECEIVE** report;
-> by mail;
|Sales|
:**RECEIVE** ack;
@enduml
The expected outcome would be that the text is horizontally center above the arrows so it is easier to see the conversation.
Thanks!
Dries
commented
Apr 26, 2017
by
plantuml
(
296,000
points)
Ok, understood. Thanks for the example
One more question: do you expect label to be centered also in the following diagram:
@startuml
skinparam arrow {
MessageAlign center
}
:**SEND** report
to customer;
->in big envelop;
:**RECEIVE** report;
-> by mail;
:**RECEIVE** ack;
@enduml
commented
Apr 26, 2017
by
ddecock
(
140
points)
Hi,
do you mean the activity labels, like "SEND report"? I don't, this should be a different skin parameter.
Kind regards,
Dries
commented
Apr 26, 2017
by
plantuml
(
296,000
points)
No, I'm talking about "in big envelop" and "by mail" labels.
I am just wondering if the 3 following diagrams should be rendered differently or not:
@startuml
skinparam arrow {
MessageAlign center
}
:**SEND** report
to customer;
->in big envelop;
:**RECEIVE** report;
-> by mail;
:**RECEIVE** ack;
@enduml
@startuml
skinparam arrow {
MessageAlign left
}
:**SEND** report
to customer;
->in big envelop;
:**RECEIVE** report;
-> by mail;
:**RECEIVE** ack;
@enduml
@startuml
skinparam arrow {
MessageAlign right
}
:**SEND** report
to customer;
->in big envelop;
:**RECEIVE** report;
-> by mail;
:**RECEIVE** ack;
@enduml
commented
Apr 27, 2017
by
ddecock
(
140
points)
Hi,
yes, I would expect 3 different renders. Would that be possible?
Thanks!
commented
Apr 27, 2017
by
plantuml
(
296,000
points)
Yes, it should be possible.
In the mean time, we have implemented your first request.
See
http://www.plantuml.com/plantuml/uml/JOxD2i8m48Jl-nHx3lW21gHIS_2WXnQyR-jIGlDJDgaYndUtWcZd_7qpKwLCacVl88qsJ2JaaKJY7P-0IqwS4WsyTtO8s7F8BF02AFMSSlGi1KfBZbE1hLAjEH-KGk4fIeOSiVzI6ZOx6x2p0tAuiOkJNbSiQcDgSxoOd_qni7kW9-lqUkCFKZzgg3XSb_Tl
Regards,
Your comment on this answer:
Your name to display (optional):
Email me at this address if a comment is added after mine:
Email me if a comment is added after mine
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please
log in
or
register
.
Related questions
Please provide a skinparam to center the text of the nodes in activity diagram
Center text in activities
Center-aligned text not in the middle of a node
Issue to copy text from generated svg (salt in activity diagram)
Improve text on arrows in activity diagram
All categories
Question / help
(1,622)
Bug
(1,708)
Wanted features
(1,458)
Closed question / help
(89)
Closed bug
(53)
Closed feature request
(130)
Won't fix
(3)
Won't implement
(13)
Can't help
(9)
To be deleted
(10)
To be sorted
(430)
...