IDiagramLayout

StockSharp.Xaml.Diagram.GXDiagram.Layout

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.

プロパティ

Diagram : Diagram

Gets or sets a reference to the owner Diagram.

Group : Group

Gets or sets a reference to the owner Group, if any.

Id : string

Gets or sets an identifier for a particular layout.

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.

メソッド

CanLayoutPart(Part) : bool

Decide whether a given Part should participate in this layout.

part

戻り値: 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