documentationfor yFiles for HTML 2.6

SwimlaneDescriptor

This class is used by HierarchicLayoutCore during the various phases and models a swimlane structure.

Inheritance Hierarchy
SwimlaneDescriptor
Implemented Interfaces

Remarks

For layout orientation TOP_TO_BOTTOM, swimlanes partition the drawing area into vertical stripes. Each node is placed within a user-specified lane. Swimlanes are, for example, often used in flow diagrams to separate logical units.

Each node should be associated with a SwimLaneDescriptor instance; nodes in the same lane may share one instance. The results of the calculation of the swimlanes' geometry will be stored by the instances after the layout.

A SwimlaneDescriptor instance can be bound to the layout algorithm using a IDataProvider registered with the graph using key SWIMLANE_DESCRIPTOR_DP_KEY that returns a SwimlaneDescriptor instance for each node of the graph.

Default Values of Properties

indexFixedtrueThe index of the swimlane will not be determined automatically.
laneTightness0.0dSwimlane will not be compressed.
leftLaneInset0.0d
minimumLaneWidth0.0d
rightLaneInset0.0d

Type Details

yfiles module
layout-hierarchic
yfiles-umd modules
layout-familytree, layout-hierarchic, layout-radial, layout
Legacy UMD name
yfiles.hierarchic.SwimlaneDescriptor

See Also

Class PartitionGrid offers a newer implementation which supports both horizontal and vertical swimlanes.

Constructors

Properties

Methods