Draw2D Layout
Identifier: org.eclipse.elk.conn.gmf.layouter.Draw2D
Meta Data Provider: GmfMetaDataProvider
Description
‘Directed Graph Layout’ provided by the Draw2D framework. This is the same algorithm that is used by the standard layout button of GMF diagrams.
Category: Layered
The layer-based method was introduced by Sugiyama, Tagawa and Toda in 1981. It emphasizes the direction of edges by pointing as many edges as possible into the same direction. The nodes are arranged in layers, which are sometimes called “hierarchies”, and then reordered such that the number of edge crossings is minimized. Afterwards, concrete coordinates are computed for the nodes and edge bend points.
Supported Graph Features
Name | Description |
---|---|
Multi Edges | Multiple edges with the same source and target node. |
Supported Options
Option | Type | Default Value | Identifier |
---|---|---|---|
Direction | Direction |
Direction.RIGHT |
org.eclipse.elk.direction |
Node Size Constraints | EnumSet<SizeConstraint> |
EnumSet.noneOf(SizeConstraint) |
org.eclipse.elk.nodeSize.constraints |
Node Spacing | double |
16 |
org.eclipse.elk.spacing.nodeNode |
Padding | ElkPadding |
new ElkPadding(16) |
org.eclipse.elk.padding |