public class CircularLayoutBuilder
extends java.lang.Object
Constructor and Description |
---|
CircularLayoutBuilder()
Initializes a new instance of the CircularLayoutBuilder class.
|
CircularLayoutBuilder(CircularLayout instance)
Initializes a new instance of the CircularLayoutBuilder class.
|
Modifier and Type | Method and Description |
---|---|
CircularLayoutBuilder |
anchoring(Anchoring value)
Sets how to align links to the anchor points of nodes.
|
CircularLayout |
create()
Creates a new object with the attributes accumulated by this builder.
|
CircularLayout |
get()
Returns an existing object passed for initialization to this builder.
|
CircularLayoutBuilder |
growToFit(boolean value)
Sets a value indicating whether the layout should increase
the diagram bounds to fit the arranged content.
|
CircularLayoutBuilder |
keepGroupLayout(boolean value)
Sets a value indicating whether to treat each Group
of nodes as a single vertex in the arranged graph.
|
CircularLayoutBuilder |
layoutLink(LayoutLink value)
Sets an object, which is notified when the
position of a link is changed by the layout.
|
CircularLayoutBuilder |
layoutNode(LayoutNode value)
Sets an object, which is notified when the
position of a node is changed by the layout.
|
CircularLayoutBuilder |
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.
|
CircularLayoutBuilder |
multipleGraphsPlacement(MultipleGraphsPlacement value)
Sets a value indicating how multiple independent graphs
in the diagram should be positioned relatively to each other.
|
CircularLayoutBuilder |
progress(LayoutProgress value)
Sets the progress callback delegate.
|
CircularLayoutBuilder |
radius(float value)
Sets the radius of the layout circle.
|
CircularLayoutBuilder |
siftingRounds(int value)
Sets the number of sifts to perform during the layout.
|
public CircularLayoutBuilder()
public CircularLayoutBuilder(CircularLayout instance)
public CircularLayoutBuilder anchoring(Anchoring value)
public CircularLayoutBuilder growToFit(boolean value)
public CircularLayoutBuilder keepGroupLayout(boolean value)
public CircularLayoutBuilder layoutLink(LayoutLink value)
public CircularLayoutBuilder layoutNode(LayoutNode value)
public CircularLayoutBuilder margins(XDimension2D.Double value)
public CircularLayoutBuilder multipleGraphsPlacement(MultipleGraphsPlacement value)
public CircularLayoutBuilder progress(LayoutProgress value)
public CircularLayoutBuilder radius(float value)
value
- A float value specifying the radius; the default is 60.public CircularLayoutBuilder siftingRounds(int value)
value
- An integer value specifying the number of sifting rounds; the default is 1.public CircularLayout create()
public CircularLayout get()