public class SwimlaneLayoutBuilder
extends java.lang.Object
Constructor and Description |
---|
SwimlaneLayoutBuilder()
Initializes a new instance of the SwimlaneLayoutBuilder class.
|
SwimlaneLayoutBuilder(SwimlaneLayout instance)
Initializes a new instance of the SwimlaneLayoutBuilder class.
|
Modifier and Type | Method and Description |
---|---|
SwimlaneLayoutBuilder |
anchoring(Anchoring value)
Sets how to align links to the anchor points of nodes.
|
SwimlaneLayoutBuilder |
collapseEmptyLanes(boolean value)
Set or sets a value indicating whether lanes without associated nodes will
shrink to zero size.
|
SwimlaneLayoutBuilder |
compactNodes(boolean value)
Sets a value indicating whether the nodes within individual lanes are compacted.
|
SwimlaneLayout |
create()
Creates a new object with the attributes accumulated by this builder.
|
SwimlaneLayoutBuilder |
direction(Direction value)
Sets the direction of the arranged diagram.
|
SwimlaneLayout |
get()
Returns an existing object passed for initialization to this builder.
|
SwimlaneLayoutBuilder |
growToFit(boolean value)
Sets a value indicating whether the layout should increase
the diagram bounds to fit the arranged content.
|
SwimlaneLayoutBuilder |
keepGroupLayout(boolean value)
Sets a value indicating whether to treat each Group
of nodes as a single vertex in the arranged graph.
|
SwimlaneLayoutBuilder |
keepLaneSizes(boolean value)
Sets a value indicating whether the layout will attempt to preserve the
original sizes of the lanes in the supplied grid.
|
SwimlaneLayoutBuilder |
laneDistance(float value)
Sets the spacing between adjacent lanes in the final layout.
|
SwimlaneLayoutBuilder |
layoutLink(LayoutLink value)
Sets an object, which is notified when the
position of a link is changed by the layout.
|
SwimlaneLayoutBuilder |
layoutNode(LayoutNode value)
Sets an object, which is notified when the
position of a node is changed by the layout.
|
SwimlaneLayoutBuilder |
margins(XDimension2D.Double value)
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.
|
SwimlaneLayoutBuilder |
multipleGraphsPlacement(MultipleGraphsPlacement value)
Sets a value indicating how multiple independent graphs
in the diagram should be positioned relatively to each other.
|
SwimlaneLayoutBuilder |
nodeDistance(float value)
Sets the spacing between adjacent nodes within a lane in the final layout.
|
SwimlaneLayoutBuilder |
orientation(com.mindfusion.common.Orientation value)
Sets a the orientation of the arranged graph.
|
SwimlaneLayoutBuilder |
progress(LayoutProgress value)
Sets the progress callback delegate.
|
SwimlaneLayoutBuilder |
swimlaneGrid(SwimlaneGrid value)
Sets the object through which the layout can manipulate the swimlane grid.
|
public SwimlaneLayoutBuilder()
public SwimlaneLayoutBuilder(SwimlaneLayout instance)
public SwimlaneLayoutBuilder anchoring(Anchoring value)
public SwimlaneLayoutBuilder collapseEmptyLanes(boolean value)
SwimlaneLayout.setLaneDistance(float)
.
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.public SwimlaneLayoutBuilder compactNodes(boolean value)
public SwimlaneLayoutBuilder direction(Direction value)
Orientation.Horizontal
,
Direction.Straight
stands
for "left to right" and Direction.Reversed
for "right to left". If the orientation is set to
Orientation.Vertical
,
Direction.Straight
stands
for "top to bottom" and Direction.Reversed
for "bottom to top".public SwimlaneLayoutBuilder growToFit(boolean value)
public SwimlaneLayoutBuilder keepGroupLayout(boolean value)
public SwimlaneLayoutBuilder keepLaneSizes(boolean value)
public SwimlaneLayoutBuilder laneDistance(float value)
public SwimlaneLayoutBuilder layoutLink(LayoutLink value)
public SwimlaneLayoutBuilder layoutNode(LayoutNode value)
public SwimlaneLayoutBuilder margins(XDimension2D.Double value)
public SwimlaneLayoutBuilder multipleGraphsPlacement(MultipleGraphsPlacement value)
public SwimlaneLayoutBuilder nodeDistance(float value)
public SwimlaneLayoutBuilder orientation(com.mindfusion.common.Orientation value)
value
- A member of the Orientation
enumeration.public SwimlaneLayoutBuilder progress(LayoutProgress value)
public SwimlaneLayoutBuilder swimlaneGrid(SwimlaneGrid value)
public SwimlaneLayout create()
public SwimlaneLayout get()