public class OneWayLayoutBuilder
extends java.lang.Object
Constructor and Description |
---|
OneWayLayoutBuilder()
Initializes a new instance of the OneWayLayoutBuilder class.
|
OneWayLayoutBuilder(OneWayLayout instance)
Initializes a new instance of the OneWayLayoutBuilder class.
|
Modifier and Type | Method and Description |
---|---|
OneWayLayoutBuilder |
anchoring(Anchoring value)
Sets how to align links to the anchor points of nodes.
|
OneWayLayout |
create()
Creates a new object with the attributes accumulated by this builder.
|
OneWayLayout |
get()
Returns an existing object passed for initialization to this builder.
|
OneWayLayoutBuilder |
growToFit(boolean value)
Sets a value indicating whether the layout should increase
the diagram bounds to fit the arranged content.
|
OneWayLayoutBuilder |
keepGroupLayout(boolean value)
Sets a value indicating whether to treat each Group
of nodes as a single vertex in the arranged graph.
|
OneWayLayoutBuilder |
layoutLink(LayoutLink value)
Sets an object, which is notified when the
position of a link is changed by the layout.
|
OneWayLayoutBuilder |
layoutNode(LayoutNode value)
Sets an object, which is notified when the
position of a node is changed by the layout.
|
OneWayLayoutBuilder |
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.
|
OneWayLayoutBuilder |
multipleGraphsPlacement(MultipleGraphsPlacement value)
Sets a value indicating how multiple independent graphs
in the diagram should be positioned relatively to each other.
|
OneWayLayoutBuilder |
nodeDistance(float value)
Sets the minimum spacing between adjacent nodes in the final layout.
|
OneWayLayoutBuilder |
orientation(com.mindfusion.common.Orientation value)
Sets the orientation of the arranged graph.
|
OneWayLayoutBuilder |
progress(LayoutProgress value)
Sets the progress callback delegate.
|
OneWayLayoutBuilder |
roundedLinks(boolean value)
Sets a value indicating whether the layout should smooth link bends.
|
public OneWayLayoutBuilder()
public OneWayLayoutBuilder(OneWayLayout instance)
public OneWayLayoutBuilder anchoring(Anchoring value)
public OneWayLayoutBuilder growToFit(boolean value)
public OneWayLayoutBuilder keepGroupLayout(boolean value)
public OneWayLayoutBuilder layoutLink(LayoutLink value)
public OneWayLayoutBuilder layoutNode(LayoutNode value)
public OneWayLayoutBuilder margins(XDimension2D.Double value)
public OneWayLayoutBuilder multipleGraphsPlacement(MultipleGraphsPlacement value)
public OneWayLayoutBuilder nodeDistance(float value)
public OneWayLayoutBuilder orientation(com.mindfusion.common.Orientation value)
value
- One of the Orientation
constants.public OneWayLayoutBuilder progress(LayoutProgress value)
public OneWayLayoutBuilder roundedLinks(boolean value)
public OneWayLayout create()
public OneWayLayout get()