public class CircularLayout extends AbstractLayout
Constructor and Description |
---|
CircularLayout()
Initializes a new instance of the CircularLayout class
with the default settings.
|
Modifier and Type | Method and Description |
---|---|
boolean |
arrange(Diagram diagram)
Applies the layout on the specified Diagram instance.
|
boolean |
arrange(Diagram diagram,
DiagramItemList items)
Applies the layout on the specified subset of items from the
specified Diagram instance.
|
float |
getRadius()
Gets the radius of the layout circle.
|
int |
getSiftingRounds()
Gets the number of sifts to perform during the layout.
|
CircularLayoutBuilder |
init()
Returns a CircularLayoutBuilder object used to configure this CircularLayout instance.
|
void |
setRadius(float value)
Sets the radius of the layout circle.
|
void |
setSiftingRounds(int value)
Sets the number of sifts to perform during the layout.
|
static CircularLayoutBuilder |
with()
Returns a CircularLayoutBuilder object used to configure and create new CircularLayout instances.
|
getAnchoring, getGrowToFit, getKeepGroupLayout, getLayoutLink, getLayoutNode, getMargins, getMultipleGraphsPlacement, getProgress, removeMidleSegmentPoint, setAnchoring, setGrowToFit, setKeepGroupLayout, setLayoutLink, setLayoutNode, setMargins, setMultipleGraphsPlacement, setProgress
public CircularLayout()
public boolean arrange(Diagram diagram)
arrange
in class AbstractLayout
diagram
- The Diagram that should be arranged.public boolean arrange(Diagram diagram, DiagramItemList items)
arrange
in class AbstractLayout
diagram
- The Diagram that should be arranged.items
- A collection of nodes and links from diagram that define the subgraph to arrange.public void setRadius(float value)
value
- A float value specifying the radius; the default is 60.public float getRadius()
public void setSiftingRounds(int value)
value
- An integer value specifying the number of sifting rounds; the default is 1.public int getSiftingRounds()
public static CircularLayoutBuilder with()
CircularLayoutBuilder
instance.public CircularLayoutBuilder init()
CircularLayoutBuilder
instance.