public class FractalLayout extends AbstractLayout
Constructor and Description |
---|
FractalLayout()
Initializes a new instance of the FractalLayout class.
|
Modifier and Type | Method and Description |
---|---|
boolean |
arrange(Diagram diagram,
DiagramItemList items)
Applies the layout on the specified subset of items from the
specified Diagram instance.
|
DiagramNode |
getRoot()
Gets the tree root.
|
FractalLayoutBuilder |
init()
Returns a FractalLayoutBuilder object used to configure this FractalLayout instance.
|
void |
setRoot(DiagramNode value)
Sets the tree root.
|
static FractalLayoutBuilder |
with()
Returns a FractalLayoutBuilder object used to configure and create new FractalLayout instances.
|
arrange, getAnchoring, getGrowToFit, getKeepGroupLayout, getLayoutLink, getLayoutNode, getMargins, getMultipleGraphsPlacement, getProgress, removeMidleSegmentPoint, setAnchoring, setGrowToFit, setKeepGroupLayout, setLayoutLink, setLayoutNode, setMargins, setMultipleGraphsPlacement, setProgress
public FractalLayout()
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 DiagramNode getRoot()
DiagramNode
specifying the root.public void setRoot(DiagramNode value)
value
- A DiagramNode
specifying the root.public static FractalLayoutBuilder with()
FractalLayoutBuilder
instance.public FractalLayoutBuilder init()
FractalLayoutBuilder
instance.