public final class Swimlanes extends Object
Swimlanes
provides helper classes and methods to handle swimlanes.
It is used by HierarchicLayout
to arrange the nodes in lanes.
Modifier and Type | Class and Description |
---|---|
static class |
Swimlanes.SwimlaneRepresentative
A
SwimlaneRepresentative represents the position and arrangement mode for a swimlane. |
Modifier and Type | Method and Description |
---|---|
static void |
arrangeSwimlanes(Graph graph,
IDataProvider node2Swimlane)
Calculates an ordering of the swimlanes.
|
static void |
arrangeSwimlanes(Graph graph,
IDataProvider node2Swimlane,
int iterations,
SwimlanesMode mode)
Calculates an ordering of the swimlanes considering the specified ordering mode.
|
public static final void arrangeSwimlanes(Graph graph, IDataProvider node2Swimlane)
The ordering will try to reduce:
group nodes
graph
- the input graphnode2Swimlane
- the assignment of nodes to swimlanesSwimlanes.SwimlaneRepresentative
,
GroupingSupport
public static final void arrangeSwimlanes(Graph graph, IDataProvider node2Swimlane, int iterations, SwimlanesMode mode)
Depending on the swimlane mode, the ordering will try to reduce:
group nodes
graph
- the input graphnode2Swimlane
- the assignment of nodes to swimlanesiterations
- the number of iterations performed by the heuristic.mode
- one of the valid swimlane ordering mode specifierSwimlanes.SwimlaneRepresentative
,
GroupingSupport