public class HierarchicalLayout extends AbstractLayout
Constructor and Description |
---|
HierarchicalLayout()
Initializes a new instance of the
HierarchicalLayout 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.
|
float |
getLevelDistance()
Gets the distance between adjecent levels in the hierarchical layout.
|
float |
getLinkBendFactor()
Gets the bending factor of links.
|
Orientation |
getOrientation()
Gets a the orientation of the arranged graph.
|
com.mindfusion.diagramming.builders.HierarchicalLayoutBuilder |
init()
Returns a HierarchicalLayoutBuilder object used to configure this HierarchicalLayout instance.
|
void |
setLevelDistance(float value)
Sets the distance between adjecent levels in the hierarchical layout.
|
void |
setLinkBendFactor(float value)
Sets the bending factor of links.
|
void |
setOrientation(Orientation value)
Sets a the orientation of the arranged graph.
|
static com.mindfusion.diagramming.builders.HierarchicalLayoutBuilder |
with()
Returns a HierarchicalLayoutBuilder object used to configure and create new HierarchicalLayout instances.
|
arrange, getAnchoring, getGrowToFit, getKeepGroupLayout, getLayoutLink, getLayoutNode, getMargins, getMultipleGraphsPlacement, getProgress, removeMidleSegmentPoint, setAnchoring, setGrowToFit, setKeepGroupLayout, setLayoutLink, setLayoutNode, setMargins, setMultipleGraphsPlacement, setProgress
public HierarchicalLayout()
HierarchicalLayout
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 Orientation getOrientation()
Orientation
enumeration.public void setOrientation(Orientation value)
value
- A member of the Orientation
enumeration.public float getLevelDistance()
public void setLevelDistance(float value)
public float getLinkBendFactor()
public void setLinkBendFactor(float value)
public static com.mindfusion.diagramming.builders.HierarchicalLayoutBuilder with()
HierarchicalLayoutBuilder
instance.public com.mindfusion.diagramming.builders.HierarchicalLayoutBuilder init()
HierarchicalLayoutBuilder
instance.