public class CascadeLayout extends AbstractLayout
Constructor and Description |
---|
CascadeLayout()
Initializes a new instance of the
CascadeLayout 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.
|
com.mindfusion.common.Orientation |
getOrientation()
Gets the orientation of the arranged graph.
|
float |
getPadding()
Gets the spacing between nodes in adjacent layers.
|
CascadeLayoutBuilder |
init()
Returns a CascadeLayoutBuilder object used to configure this CascadeLayout instance.
|
void |
setOrientation(com.mindfusion.common.Orientation value)
Sets the orientation of the arranged graph.
|
void |
setPadding(float value)
Sets the spacing between nodes in adjacent layers.
|
static CascadeLayoutBuilder |
with()
Returns a CascadeLayoutBuilder object used to configure and create new CascadeLayout instances.
|
arrange, getAnchoring, getGrowToFit, getKeepGroupLayout, getLayoutLink, getLayoutNode, getMargins, getMultipleGraphsPlacement, getProgress, removeMidleSegmentPoint, setAnchoring, setGrowToFit, setKeepGroupLayout, setLayoutLink, setLayoutNode, setMargins, setMultipleGraphsPlacement, setProgress
public CascadeLayout()
CascadeLayout
class.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 com.mindfusion.common.Orientation getOrientation()
Orientation
enumeration.public void setOrientation(com.mindfusion.common.Orientation value)
value
- A member of the Orientation
enumeration.public float getPadding()
public void setPadding(float value)
public static CascadeLayoutBuilder with()
CascadeLayoutBuilder
instance.public CascadeLayoutBuilder init()
CascadeLayoutBuilder
instance.