Welcome to yEd Q&A! Here you can ask questions and receive answers from other members of the community and yEd developers. And you can tell us your most wanted feature requests.
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:
To avoid this verification in future, please log in or register.
2 Answers
+1 vote
Best answer
The use of temporary nodes as jigs or templates can help with alignment in yEd.
To center nodes within a vertical swimlane, create a temporary rectangular node that you have adjusted to match the width of the swimlane. Just add a simple rectangle to the swimlane, stretch it to touch both sides of the lane, and reduce the height if needed to avoid other nodes in the lane.
Select all nodes in the swimlane including the temporary rectangle. Align the nodes horizontally.
With all of the nodes still selected, drag the set of nodes left or right until the temporary node again touches both sides of the lane. Deselect all nodes. Delete the temporay node. The nodes are now centered in the swimlane.
This takes a few more steps than simply aligning horizontally, but quickly achieves the desired result.