public class TopologicalLayout extends AbstractLayout
Constructor and Description |
---|
TopologicalLayout()
Initializes a new instance of the CircularLayout class
with the default settings.
|
Modifier and Type | Method and Description |
---|---|
boolean |
arrange(Diagram diagram)
Applies the layout on the specified Diagram instance.
|
boolean |
arrange(Diagram diagram,
DiagramItemList items)
Applies the layout on the specified subset of items from the
specified Diagram instance.
|
boolean |
getBendAdjacentLinks()
Gets a value indicating whether to bend links connecting adjacent nodes or draw them as straight lines.
|
Direction |
getDirection()
Gets the direction of the arranged diagram.
|
float |
getNodeDistance()
Gets the distance between adjacent nodes in the diagram.
|
Orientation |
getOrientation()
Gets the overall orientation of the arranged diagram.
|
com.mindfusion.diagramming.builders.TopologicalLayoutBuilder |
init()
Returns a TopologicalLayoutBuilder object used to configure this TopologicalLayout instance.
|
void |
setBendAdjacentLinks(boolean value)
Sets a value indicating whether to bend links connecting adjacent nodes or draw them as straight lines.
|
void |
setDirection(Direction value)
Sets the direction of the arranged diagram.
|
void |
setNodeDistance(float value)
Sets the distance between adjacent nodes in the diagram.
|
void |
setOrientation(Orientation value)
Sets the overall orientation of the arranged diagram.
|
static com.mindfusion.diagramming.builders.TopologicalLayoutBuilder |
with()
Returns a TopologicalLayoutBuilder object used to configure and create new TopologicalLayout instances.
|
getAnchoring, getGrowToFit, getKeepGroupLayout, getLayoutLink, getLayoutNode, getMargins, getMultipleGraphsPlacement, getProgress, removeMidleSegmentPoint, setAnchoring, setGrowToFit, setKeepGroupLayout, setLayoutLink, setLayoutNode, setMargins, setMultipleGraphsPlacement, setProgress
public TopologicalLayout()
public boolean arrange(Diagram diagram)
arrange
in class AbstractLayout
diagram
- The Diagram that should be arranged.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 void setOrientation(Orientation value)
value
- A member of the Orientation
enumeration.public Orientation getOrientation()
Orientation
enumeration.public void setDirection(Direction value)
value
- A member of the Direction enumeration. The default is Straight.public Direction getDirection()
public void setNodeDistance(float value)
value
- A float value specifying the distance between adjacent nodes. The default is 20.public float getNodeDistance()
public void setBendAdjacentLinks(boolean value)
value
- true to bend links connecting adjacent nodes; false, to draw them as straight lines. The default is false.public boolean getBendAdjacentLinks()
public static com.mindfusion.diagramming.builders.TopologicalLayoutBuilder with()
TopologicalLayoutBuilder
instance.public com.mindfusion.diagramming.builders.TopologicalLayoutBuilder init()
TopologicalLayoutBuilder
instance.