public class DecisionLayout extends AbstractLayout
Constructor and Description |
---|
DecisionLayout()
Initializes a new instance of the
DecisionLayout class
with the default settings. |
Modifier and Type | Method and Description |
---|---|
boolean |
arrange(Diagram diagram,
DiagramItemList items)
Applies the layout to the specified diagram.
|
protected Dimension |
getDefaultMarginValue()
Gets the default value of the
Margins property. |
float |
getHorizontalPadding()
Gets the horizontal distance between adjacent nodes.
|
float |
getLinkPadding()
Gets the distance between parallel links.
|
Orientation |
getOrientation()
Gets the orientation of the arranged diagram.
|
DiagramNode |
getStartNode()
Gets the initial (top-left) node in the arranged diagram.
|
float |
getVerticalPadding()
Gets the vertical distance between adjacent nodes.
|
com.mindfusion.diagramming.builders.DecisionLayoutBuilder |
init()
Returns a DecisionLayoutBuilder object used to configure this DecisionLayout instance.
|
void |
setHorizontalPadding(float value)
Sets the horizontal distance between adjacent nodes.
|
void |
setLinkPadding(float value)
Sets the distance between parallel links.
|
void |
setOrientation(Orientation value)
Sets the orientation of the arranged diagram.
|
void |
setStartNode(DiagramNode value)
Sets the initial (top-left) node in the arranged diagram.
|
void |
setVerticalPadding(float value)
Sets the vertical distance between adjacent nodes.
|
static com.mindfusion.diagramming.builders.DecisionLayoutBuilder |
with()
Returns a DecisionLayoutBuilder object used to configure and create new DecisionLayout instances.
|
arrange, getAnchoring, getGrowToFit, getKeepGroupLayout, getLayoutLink, getLayoutNode, getMargins, getMultipleGraphsPlacement, getProgress, removeMidleSegmentPoint, setAnchoring, setGrowToFit, setKeepGroupLayout, setLayoutLink, setLayoutNode, setMargins, setMultipleGraphsPlacement, setProgress
public DecisionLayout()
DecisionLayout
class
with the default settings.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.protected Dimension getDefaultMarginValue()
Margins
property.public Orientation getOrientation()
Orientation
enumeration.
The default is Vertical
.public void setOrientation(Orientation value)
value
- A member of the Orientation
enumeration.public DiagramNode getStartNode()
If this property is null, the layout will pick-up the start node automatically.
DiagramNode
object that specifies the initial node.
The default is null.public void setStartNode(DiagramNode value)
If this property is null, the layout will pick-up the start node automatically.
value
- A DiagramNode
object that specifies the initial node.public float getHorizontalPadding()
public void setHorizontalPadding(float value)
value
- A real number specifying the distance between adjacent nodes.public float getVerticalPadding()
public void setVerticalPadding(float value)
value
- A real number specifying the distance between adjacent nodes.public float getLinkPadding()
public void setLinkPadding(float value)
value
- A real number specifying the distance between parallel links.public static com.mindfusion.diagramming.builders.DecisionLayoutBuilder with()
DecisionLayoutBuilder
instance.public com.mindfusion.diagramming.builders.DecisionLayoutBuilder init()
DecisionLayoutBuilder
instance.