DroidDiagram Programmer's Guide
SwimlaneLayout Members
Constructors Methods
 


Implements an algorithm which arranges nodes in lanes.

The following tables list the members exposed by the SwimlaneLayout type.

 Public Constructors

  Name Description

SwimlaneLayout

Initializes a new instance of the SwimlaneLayout class with the default settings.

 Public Methods

  Name Description

arrange

Applies the layout on the specified subset of items from the specified Diagram instance.

getAnchoring

Gets how to align links to the anchor points of nodes. (Inherited from AbstractLayout.)

getCollapseEmptyLanes

Get or sets a value indicating whether lanes without associated nodes will shrink to zero size. By default, empty lanes will have size equal to the value specified through setLaneDistance.

getCompactNodes

Gets a value indicating whether the nodes within individual lanes are compacted.

getDirection

Gets the direction of the arranged diagram.

getGrowToFit

Gets a value indicating whether the diagram boundaries should grow to fit the arranged content. (Inherited from AbstractLayout.)

getKeepGroupLayout

Gets a value indicating whether to treat each Group of nodes as a single vertex in the arranged graph. (Inherited from AbstractLayout.)

getKeepLaneSizes

Gets a value indicating whether the layout will attempt to preserve the original sizes of the lanes in the supplied grid.

getLaneDistance

Gets the spacing between adjacent lanes in the final layout.

getLayoutLink

Gets an object, which is notified when the position of a link is changed by the layout. (Inherited from AbstractLayout.)

getLayoutNode

Gets an object, which is notified when the position of a node is changed by the layout. (Inherited from AbstractLayout.)

getMargins

Gets the distance between the top-left corner of the smallest rectangle containing the arranged diagram and the top-left point of the document bounds. (Inherited from AbstractLayout.)

getMultipleGraphsPlacement

Gets a value indicating how multiple independent graphs in the diagram should be positioned relatively to each other. (Inherited from AbstractLayout.)

getNodeDistance

Gets the spacing between adjacent nodes within a lane in the final layout.

getOrientation

Gets a the orientation of the arranged graph.

getProgress

Gets the progress callback delegate. (Inherited from AbstractLayout.)

getSwimlaneGrid

Gets the object through which the layout can manipulate the swimlane grid.

init

Returns a SwimlaneLayoutBuilder object used to configure this SwimlaneLayout instance.

removeMidleSegmentPoint

  (Inherited from AbstractLayout.)

setAnchoring

Sets how to align links to the anchor points of nodes. (Inherited from AbstractLayout.)

setCollapseEmptyLanes

Set or sets a value indicating whether lanes without associated nodes will shrink to zero size. By default, empty lanes will have size equal to the value specified through setLaneDistance. To be able to shrink the lanes of a lane grid to zero size, the MinHeaderSize property of the lane grid must be set to an appropriate value.

setCompactNodes

Sets a value indicating whether the nodes within individual lanes are compacted.

setDirection

Sets the direction of the arranged diagram. If the orientation is set to com.mindfusion.diagramming.jlayout.Orientation.Horizontal, com.mindfusion.diagramming.jlayout.Direction.Straight stands for "left to right" and com.mindfusion.diagramming.jlayout.Direction.Reversed for "right to left". If the orientation is set to com.mindfusion.diagramming.jlayout.Orientation.Vertical, com.mindfusion.diagramming.jlayout.Direction.Straight stands for "top to bottom" and com.mindfusion.diagramming.jlayout.Direction.Reversed for "bottom to top".

setGrowToFit

Sets a value indicating whether the diagram boundaries should grow to fit the arranged content. (Inherited from AbstractLayout.)

setKeepGroupLayout

Sets a value indicating whether to treat each Group of nodes as a single vertex in the arranged graph. (Inherited from AbstractLayout.)

setKeepLaneSizes

Sets a value indicating whether the layout will attempt to preserve the original sizes of the lanes in the supplied grid.

setLaneDistance

Sets the spacing between adjacent lanes in the final layout.

setLayoutLink

Sets an object, which is notified when the position of a link is changed by the layout. (Inherited from AbstractLayout.)

setLayoutNode

Sets an object, which is notified when the position of a node is changed by the layout. (Inherited from AbstractLayout.)

setMargins

Sets the distance between the top-left corner of the smallest rectangle containing the arranged diagram and the top-left point of the document bounds. (Inherited from AbstractLayout.)

setMultipleGraphsPlacement

Sets a value indicating how multiple independent graphs in the diagram should be positioned relatively to each other. (Inherited from AbstractLayout.)

setNodeDistance

Sets the spacing between adjacent nodes within a lane in the final layout.

setOrientation

Sets a the orientation of the arranged graph.

setProgress

Sets the progress callback delegate. (Inherited from AbstractLayout.)

setSwimlaneGrid

Sets the object through which the layout can manipulate the swimlane grid. If this is null at the time of layout, the layout will operate on the diagram's lane grid.

with

Returns a SwimlaneLayoutBuilder object used to configure and create new SwimlaneLayout instances.

 See Also

SwimlaneLayout Class
com.mindfusion.diagramming Namespace