IDiagramLayout
This interface specifies the methods and properties that the LayoutManager of the Diagram uses to perform the positioning and routing of all of the nodes and links in the diagram.
Propriedades
ValidLayout : bool
Gets or sets whether this layout is valid; if not, the LayoutManager will call Link}) sometime in order to try to make the layout valid.
Métodos
CanLayoutPart(Part) : bool
Decide whether a given Part should participate in this layout.
- part
Retorna: Typically this should return false if the part is not visible, if the part is in a temporary Layer, or if the part's LayoutId is "None". This should return true if the part's LayoutId is "All" or if it matches the Id of this layout.
DoLayout(IEnumerable<Node>, IEnumerable<Link>)
Actually perform the layout computations--positioning the nodes and routing the links.
- nodes
- the Nodes to operate on
- links
- the Links to operate on
Invalidate(LayoutChange, Part)
Declare that this layout might no longer be valid, depending on the reason for the change.
- reason
- a LayoutChange hint describing what change may have made the layout invalid
- part
- an optional Part that has changed