public class OrthogonalLayout extends AbstractLayout
Constructor and Description |
---|
OrthogonalLayout()
Initializes a new instance of the OrthogonalLayout class
with the default settings.
|
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.
|
boolean |
getDirected()
Gets a value indicating whether the graph being laid out
is directed.
|
boolean |
getMinimizeLinkBends() |
float |
getMinLaneSize()
Gets a value indicating the minimum size of a lane.
|
float |
getPadding()
Gets a value indicating how much space to leave between nodes in adjacent lanes.
|
boolean |
getRefine()
Gets a value indicating whether to refine the layout.
|
com.mindfusion.diagramming.builders.OrthogonalLayoutBuilder |
init()
Returns an OrthogonalLayoutBuilder object used to configure this OrthogonalLayout instance.
|
void |
setDirected(boolean directed)
Sets a value indicating whether the graph being laid out
is directed.
|
void |
setMinimizeLinkBends(boolean value)
Sets a value indicating whether the layout should attempt to minimize link bends.
|
void |
setMinLaneSize(float value)
Sets a value indicating the minimum size of a lane.
|
void |
setPadding(float padding)
Sets a value indicating how much space to leave between nodes in adjacent lanes.
|
void |
setRefine(boolean refine)
Sets a value indicating whether to refine the layout.
|
static com.mindfusion.diagramming.builders.OrthogonalLayoutBuilder |
with()
Returns an OrthogonalLayoutBuilder object used to configure and create new OrthogonalLayout instances.
|
arrange, getAnchoring, getGrowToFit, getKeepGroupLayout, getLayoutLink, getLayoutNode, getMargins, getMultipleGraphsPlacement, getProgress, removeMidleSegmentPoint, setAnchoring, setGrowToFit, setKeepGroupLayout, setLayoutLink, setLayoutNode, setMargins, setMultipleGraphsPlacement, setProgress
public OrthogonalLayout()
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 float getMinLaneSize()
public void setMinLaneSize(float value)
value
- A float value specifying the minimum lane size; the default is 10.public float getPadding()
public void setPadding(float padding)
padding
- A float value specifying the padding between lanes; the default is 15.public boolean getRefine()
true
to make local refinements in the layout grid; otherwise false
.public void setRefine(boolean refine)
refine
- true
to make local refinements in the layout grid; otherwise false
.public boolean getDirected()
true
to treat the graph as directed, otherwise false
.public void setDirected(boolean directed)
directed
- true
to treat the graph as directed, otherwise false
.public boolean getMinimizeLinkBends()
public void setMinimizeLinkBends(boolean value)
value
- true to minimize link bends, otherwise false. The default value is true.public static com.mindfusion.diagramming.builders.OrthogonalLayoutBuilder with()
OrthogonalLayoutBuilder
instance.public com.mindfusion.diagramming.builders.OrthogonalLayoutBuilder init()
OrthogonalLayoutBuilder
instance.