public class OneWayLayout extends AbstractLayout
Constructor and Description |
---|
OneWayLayout()
Initializes a new instance of the
OneWayLayout 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 XDimension2D.Double |
getDefaultMarginValue()
Gets the default value of the
Margins property. |
float |
getNodeDistance()
Gets the minimum spacing between adjacent nodes in the final layout.
|
com.mindfusion.common.Orientation |
getOrientation()
Gets the orientation of the arranged graph.
|
boolean |
getRoundedLinks()
Gets a value indicating whether the layout should smooth link bends.
|
OneWayLayoutBuilder |
init()
Returns an OneWayLayoutBuilder object used to configure this OneWayLayout instance.
|
void |
setNodeDistance(float value)
Sets the minimum spacing between adjacent nodes in the final layout.
|
void |
setOrientation(com.mindfusion.common.Orientation value)
Sets the orientation of the arranged graph.
|
void |
setRoundedLinks(boolean value)
Sets a value indicating whether the layout should smooth link bends.
|
static OneWayLayoutBuilder |
with()
Returns an OneWayLayoutBuilder object used to configure and create new OneWayLayout instances.
|
arrange, getAnchoring, getGrowToFit, getKeepGroupLayout, getLayoutLink, getLayoutNode, getMargins, getMultipleGraphsPlacement, getProgress, removeMidleSegmentPoint, setAnchoring, setGrowToFit, setKeepGroupLayout, setLayoutLink, setLayoutNode, setMargins, setMultipleGraphsPlacement, setProgress
public OneWayLayout()
OneWayLayout
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 XDimension2D.Double getDefaultMarginValue()
Margins
property.public boolean getRoundedLinks()
public void setRoundedLinks(boolean value)
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 getNodeDistance()
public void setNodeDistance(float value)
public static OneWayLayoutBuilder with()
OneWayLayoutBuilder
instance.public OneWayLayoutBuilder init()
OneWayLayoutBuilder
instance.