public class FlowchartLayout extends AbstractLayout
Constructor and Description |
---|
FlowchartLayout()
Initializes a new instance of the
FlowchartLayout 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 |
getBranchPadding()
Gets how much space to leave between adjacent decision branches in the flowchart.
|
boolean |
getIgnoreRepeatingLinks()
Gets a value indicating whether to ignore repeating links.
|
float |
getLinkPadding()
Gets how much space to leave between adjacent back links designating nested loops.
|
float |
getNodeDistance()
Gets the distance between consecutive nodes in the flowchart.
|
com.mindfusion.common.Orientation |
getOrientation()
Gets the overall orientation of the arranged diagram.
|
boolean |
getSplitGraph()
Gets a value indicating whether unconnected subgraphs
should be laid out independently from each other.
|
FlowchartLayoutBuilder |
init()
Returns a FlowchartLayoutBuilder object used to configure this FlowchartLayout instance.
|
void |
setBranchPadding(int value)
Sets how much space to leave between adjacent decision branches in the flowchart.
|
void |
setIgnoreRepeatingLinks(boolean value)
Sets a value indicating whether to ignore repeating links.
|
void |
setLinkPadding(float value)
Sets how much space to leave between adjacent back links designating nested loops.
|
void |
setNodeDistance(float value)
Sets the distance between consecutive nodes in the flowchart.
|
void |
setOrientation(com.mindfusion.common.Orientation value)
Sets the overall orientation of the arranged diagram.
|
void |
setSplitGraph(boolean value)
Sets a value indicating whether unconnected subgraphs
should be laid out independently from each other.
|
static FlowchartLayoutBuilder |
with()
Returns a FlowchartLayoutBuilder object used to configure and create new FlowchartLayout instances.
|
arrange, getAnchoring, getGrowToFit, getKeepGroupLayout, getLayoutLink, getLayoutNode, getMargins, getMultipleGraphsPlacement, getProgress, removeMidleSegmentPoint, setAnchoring, setGrowToFit, setKeepGroupLayout, setLayoutLink, setLayoutNode, setMargins, setMultipleGraphsPlacement, setProgress
public FlowchartLayout()
FlowchartLayout
class.public boolean arrange(Diagram diagram, DiagramItemList items)
Diagram
instance.arrange
in class AbstractLayout
diagram
- The Diagram
to arrange.items
- Specifies a subset of diagram items to arrange.true
if the diagram has been arranged successfully;
otherwise, false
.public boolean getSplitGraph()
true
, each independent graph in
the diagram is laid out in its own layout area. Otherwise all
subgraphs are arranged in the same layout area.public void setSplitGraph(boolean value)
true
, each independent graph in
the diagram is laid out in its own layout area. Otherwise all
subgraphs are arranged in the same layout area.public com.mindfusion.common.Orientation getOrientation()
public void setOrientation(com.mindfusion.common.Orientation value)
public float getBranchPadding()
public void setBranchPadding(int value)
public float getLinkPadding()
public void setLinkPadding(float value)
public float getNodeDistance()
public void setNodeDistance(float value)
public boolean getIgnoreRepeatingLinks()
public void setIgnoreRepeatingLinks(boolean value)
public static FlowchartLayoutBuilder with()
FlowchartLayoutBuilder
instance.public FlowchartLayoutBuilder init()
FlowchartLayoutBuilder
instance.