public class TriangularLayout extends AbstractLayout
Constructor and Description |
---|
TriangularLayout()
Initializes a new instance of the TriangularLayout 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.
|
boolean |
getBendNonplanarLinks()
Gets a value indicating whether the intersecting links in a
non-planar graphs will be segmented and bended to improve presentation.
|
float |
getGridSize()
Gets the size of the virtual grid the layout will place vertices on.
|
com.mindfusion.common.Orientation |
getOrientation()
Gets a the orientation of the arranged graph.
|
TriangularLayoutBuilder |
init()
Returns a TriangularLayoutBuilder object used to configure this TriangularLayout instance.
|
void |
setBendNonplanarLinks(boolean value)
Sets a value indicating whether the intersecting links in a
non-planar graphs will be segmented and bended to improve presentation.
|
void |
setGridSize(float value)
Sets the size of the virtual grid the layout will place vertices on.
|
void |
setOrientation(com.mindfusion.common.Orientation value)
Sets a the orientation of the arranged graph.
|
static TriangularLayoutBuilder |
with()
Returns a TriangularLayoutBuilder object used to configure and create new TriangularLayout instances.
|
arrange, getAnchoring, getGrowToFit, getKeepGroupLayout, getLayoutLink, getLayoutNode, getMargins, getMultipleGraphsPlacement, getProgress, removeMidleSegmentPoint, setAnchoring, setGrowToFit, setKeepGroupLayout, setLayoutLink, setLayoutNode, setMargins, setMultipleGraphsPlacement, setProgress
public TriangularLayout()
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 com.mindfusion.common.Orientation getOrientation()
Orientation
enumeration.public void setOrientation(com.mindfusion.common.Orientation value)
value
- A member of the Orientation
enumeration.public boolean getBendNonplanarLinks()
public void setBendNonplanarLinks(boolean value)
public float getGridSize()
public void setGridSize(float value)
public static TriangularLayoutBuilder with()
TriangularLayoutBuilder
instance.public TriangularLayoutBuilder init()
TriangularLayoutBuilder
instance.