public class OrthogonalLayoutBuilder
extends java.lang.Object
Constructor and Description |
---|
OrthogonalLayoutBuilder()
Initializes a new instance of the OrthogonalLayoutBuilder class.
|
OrthogonalLayoutBuilder(OrthogonalLayout instance)
Initializes a new instance of the OrthogonalLayoutBuilder class.
|
Modifier and Type | Method and Description |
---|---|
OrthogonalLayoutBuilder |
anchoring(Anchoring value)
Sets how to align links to the anchor points of nodes.
|
OrthogonalLayout |
create()
Creates a new object with the attributes accumulated by this builder.
|
OrthogonalLayoutBuilder |
directed(boolean value)
Sets a value indicating whether the graph being laid out is directed.
|
OrthogonalLayout |
get()
Returns an existing object passed for initialization to this builder.
|
OrthogonalLayoutBuilder |
growToFit(boolean value)
Sets a value indicating whether the layout should increase
the diagram bounds to fit the arranged content.
|
OrthogonalLayoutBuilder |
keepGroupLayout(boolean value)
Sets a value indicating whether to treat each Group
of nodes as a single vertex in the arranged graph.
|
OrthogonalLayoutBuilder |
layoutLink(LayoutLink value)
Sets an object, which is notified when the
position of a link is changed by the layout.
|
OrthogonalLayoutBuilder |
layoutNode(LayoutNode value)
Sets an object, which is notified when the
position of a node is changed by the layout.
|
OrthogonalLayoutBuilder |
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.
|
OrthogonalLayoutBuilder |
minimizeLinkBends(boolean value)
Sets a value indicating whether the layout should attempt to minimize link bends.
|
OrthogonalLayoutBuilder |
minLaneSize(float value)
Sets a value indicating the minimum size of a lane.
|
OrthogonalLayoutBuilder |
multipleGraphsPlacement(MultipleGraphsPlacement value)
Sets a value indicating how multiple independent graphs
in the diagram should be positioned relatively to each other.
|
OrthogonalLayoutBuilder |
padding(float value)
Sets a value indicating how much space to leave between nodes in adjacent lanes.
|
OrthogonalLayoutBuilder |
progress(LayoutProgress value)
Sets the progress callback delegate.
|
OrthogonalLayoutBuilder |
refine(boolean value)
Sets a value indicating whether to refine the layout.
|
public OrthogonalLayoutBuilder()
public OrthogonalLayoutBuilder(OrthogonalLayout instance)
public OrthogonalLayoutBuilder anchoring(Anchoring value)
public OrthogonalLayoutBuilder directed(boolean value)
directed
- true
to treat the graph as directed, otherwise false
.public OrthogonalLayoutBuilder growToFit(boolean value)
public OrthogonalLayoutBuilder keepGroupLayout(boolean value)
public OrthogonalLayoutBuilder layoutLink(LayoutLink value)
public OrthogonalLayoutBuilder layoutNode(LayoutNode value)
public OrthogonalLayoutBuilder margins(XDimension2D.Double value)
public OrthogonalLayoutBuilder minLaneSize(float value)
value
- A float value specifying the minimum lane size; the default is 10.public OrthogonalLayoutBuilder minimizeLinkBends(boolean value)
value
- true to minimize link bends, otherwise false. The default value is true.public OrthogonalLayoutBuilder multipleGraphsPlacement(MultipleGraphsPlacement value)
public OrthogonalLayoutBuilder padding(float value)
padding
- A float value specifying the padding between lanes; the default is 15.public OrthogonalLayoutBuilder progress(LayoutProgress value)
public OrthogonalLayoutBuilder refine(boolean value)
refine
- true
to make local refinements in the layout grid; otherwise false
.public OrthogonalLayout create()
public OrthogonalLayout get()