Community
Participate
Working Groups
Currently org.eclipse.draw2d.internal.graph.VerticalPlacement will resize the height of the nodes to be the height of the biggest node in the row. This behaviour should really selectable. I suggest adding a boolean flag to the constructor to enable or disable this behaviour.
Created attachment 8591 [details] source
This class is currently internal. What would you propose for an [open-ended] set of layout hints on both the Nodes and the DirectedGraph?
I'd suggest adding a mechanism on DirectedGraphLayout.visit() method to specify how you want the graph laid out. These could be defined by a 'style' flag, or a dictionary of layout directives. The characteristics you can change will really be determined by the implementation of the visit() method, so a dictionary might be the better implementation. You could also apply these directives to each node and edge, but I would assume in most cases you'd want the same directives to apply across all nodes and edges for a particular layout invocation. Hence my suggestion to put it on DirectedGraphLayout.