Implements an algorithm which arranges nodes in lanes.
Namespace: com.mindfusion.diagramming
Package: com.mindfusion.diagramming
Java
![]() |
---|
public class SwimlaneLayout extends AbstractLayout |
This layout algorithm can be used to arrange process diagrams in which nodes representing activities are placed in swimlanes representing resources. The index of the resource allocated to an activity should be assigned to the corresponding node's LayoutTraits via the SwimlaneLayoutTraits.Lane key.
By default, the algorithm works with the diagram's LaneGrid, but its SwimlaneGrid property can be set to any class that implements the SwimlaneGrid interface. This allows applying the layout to a custom-drawn grid rendered through the drawBackground event, or one composed of locked background nodes.
java.lang.Object
com.mindfusion.diagramming.AbstractLayout
com.mindfusion.diagramming.SwimlaneLayout