This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi Jason, is it possible to tell the Grid Layout Algorithm not to place all CustomNodeShapes in a row? Because if i have many shapes in the diagramsurface this not really userfriendly. Or do i have to write my own layout algorithm. Thanks, -Patrick |
|
|
Hi Patrick, The Grid layout algorithm may be a bit too simple for what you need. What it does is arrange the nodes based on the edge (left, right, top, bottom) that the connections between each node are connected to. In your image, each node has connection from the right hand side flowing into the left hand side of the next node. This causes the Grid layout algorithm to align them in a row. This algorithm could probably have been named better. Although it does ultimately arrange the nodes in an imaginary grid, it is the connectivity of the nodes that drives the arrangement. You will need to implement your own algorithm to get the exact arrangement that you need. Let me know if you have questions about doing this. -Jason Fauchelle |
|