To place and draw components at specific coordinates using Java with Structurizr #269
-
I am using Structurizr java for our enterprise application. For placing or drawing an element at specific co-ordinates, I have tried using ElementView with AutomaticLayout and without AutomaticLayout. But its not helping to place an element at a position. Im following this way: ElementView eleView = deploymentView.getElements().stream() if (eleView != null) { Please suggest me a way to order the elements through java. Also please suggest me if im doing this in a wrong way. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi, Can anyone please help me here. I would really need this in our project for placing the elements. |
Beta Was this translation helpful? Give feedback.
-
This code will work - if you're pushing your workspace to an on-premises installation or the cloud service, be sure to call |
Beta Was this translation helpful? Give feedback.
This code will work - if you're pushing your workspace to an on-premises installation or the cloud service, be sure to call
setMergeFromRemote(false)
on your WorkspaceApiClient instance to force push your layout information.