Layout Part of Diagram (NO_LAYOUT) [message #1850455] |
Thu, 03 March 2022 09:48  |
Eclipse User |
|
|
|
I'm using a slightly modified version of ELK Layered. I'd like to keep certain nodes from being used in the layout processes or if possible send them to a separate layout algorithm. Right now I'm attempting to use the layout option NO_LAYOUT by node.setProperty(LayeredOptions.NO_LAYOUT, true). However, the algorithm doesn't respect it and adds them to the layout processes.
In the o.design file, I've tried adding the No Layout option. Selecting true leads to all nodes being excluded from layout while unchecking it seems to do nothing.
|
|
|
|
|
Re: Layout Part of Diagram (NO_LAYOUT) [message #1850509 is a reply to message #1850458] |
Mon, 07 March 2022 03:14  |
Eclipse User |
|
|
|
That depends on what you want to do with the graph. You could of course just create two different graphs that you layout separately. Or you could do an initial layout, for example a force layout, and then programmatically set the NO_LAYOUT option to layout the other part with the layered algorithm.
Quote:I got org.eclipse.elk.core.UnsupportedGraphException: The source or the target of edge ElkEdge "O 1..1 " ElkNode "<<Process>>
Atomic_Process2" (20.0,201.0 | 170.0,62.0) -> ElkNode "Element2" (384.0,336.0 | 170.0,50.0) could not be found. This usually happens when an edge connects a node laid out by ELK Layered to a node in another level of hierarchy laid out by either another instance of ELK Layered or another layout algorithm altogether. The former can be solved by setting the hierarchyHandling option to INCLUDE_CHILDREN.
The UnsupportedGraphException is usually thrown if the configuration is indeed not supported. If you provide an example I can have a look at it.
|
|
|
Powered by
FUDForum. Page generated in 0.02967 seconds