public class TopologicalLayoutBuilder
extends java.lang.Object
Constructor and Description |
---|
TopologicalLayoutBuilder()
Initializes a new instance of the TopologicalLayoutBuilder class.
|
TopologicalLayoutBuilder(TopologicalLayout instance)
Initializes a new instance of the TopologicalLayoutBuilder class.
|
Modifier and Type | Method and Description |
---|---|
TopologicalLayoutBuilder |
anchoring(Anchoring value)
Sets how to align links to the anchor points of nodes.
|
TopologicalLayoutBuilder |
bendAdjacentLinks(boolean value)
Sets a value indicating whether to bend links connecting adjacent nodes or draw them as straight lines.
|
TopologicalLayout |
create()
Creates a new object with the attributes accumulated by this builder.
|
TopologicalLayoutBuilder |
direction(Direction value)
Sets the direction of the arranged diagram.
|
TopologicalLayout |
get()
Returns an existing object passed for initialization to this builder.
|
TopologicalLayoutBuilder |
growToFit(boolean value)
Sets a value indicating whether the layout should increase
the diagram bounds to fit the arranged content.
|
TopologicalLayoutBuilder |
keepGroupLayout(boolean value)
Sets a value indicating whether to treat each Group
of nodes as a single vertex in the arranged graph.
|
TopologicalLayoutBuilder |
layoutLink(LayoutLink value)
Sets an object, which is notified when the
position of a link is changed by the layout.
|
TopologicalLayoutBuilder |
layoutNode(LayoutNode value)
Sets an object, which is notified when the
position of a node is changed by the layout.
|
TopologicalLayoutBuilder |
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.
|
TopologicalLayoutBuilder |
multipleGraphsPlacement(MultipleGraphsPlacement value)
Sets a value indicating how multiple independent graphs
in the diagram should be positioned relatively to each other.
|
TopologicalLayoutBuilder |
nodeDistance(float value)
Sets the distance between adjacent nodes in the diagram.
|
TopologicalLayoutBuilder |
orientation(com.mindfusion.common.Orientation value)
Sets the overall orientation of the arranged diagram.
|
TopologicalLayoutBuilder |
progress(LayoutProgress value)
Sets the progress callback delegate.
|
public TopologicalLayoutBuilder()
public TopologicalLayoutBuilder(TopologicalLayout instance)
public TopologicalLayoutBuilder anchoring(Anchoring value)
public TopologicalLayoutBuilder bendAdjacentLinks(boolean value)
value
- true to bend links connecting adjacent nodes; false, to draw them as straight lines. The default is false.public TopologicalLayoutBuilder direction(Direction value)
value
- A member of the Direction enumeration. The default is Straight.public TopologicalLayoutBuilder growToFit(boolean value)
public TopologicalLayoutBuilder keepGroupLayout(boolean value)
public TopologicalLayoutBuilder layoutLink(LayoutLink value)
public TopologicalLayoutBuilder layoutNode(LayoutNode value)
public TopologicalLayoutBuilder margins(XDimension2D.Double value)
public TopologicalLayoutBuilder multipleGraphsPlacement(MultipleGraphsPlacement value)
public TopologicalLayoutBuilder nodeDistance(float value)
value
- A float value specifying the distance between adjacent nodes. The default is 20.public TopologicalLayoutBuilder orientation(com.mindfusion.common.Orientation value)
value
- A member of the Orientation
enumeration.public TopologicalLayoutBuilder progress(LayoutProgress value)
public TopologicalLayout create()
public TopologicalLayout get()