Interface ILayout<TNode, TConfiguration>
Represents a layout that holds configurations of nodes.
Namespace: Edgar.Legacy.Core.Layouts.Interfaces
Assembly: Edgar.dll
Syntax
public interface ILayout<TNode, TConfiguration>
Type Parameters
| Name | Description |
|---|---|
| TNode | |
| TConfiguration |
Remarks
No nodes have configuration by default. Their configurations must be first added with a SetConfiguration method.
Properties
Graph
Underlying graph of nodes connections.
Declaration
IGraph<TNode> Graph { get; }
Property Value
| Type | Description |
|---|---|
| IGraph<TNode> |
Methods
GetAllConfigurations()
Gets all configurations.
Declaration
IEnumerable<TConfiguration> GetAllConfigurations()
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<TConfiguration> |
GetConfiguration(TNode, out TConfiguration)
Gets the configuration of a given node.
Declaration
bool GetConfiguration(TNode node, out TConfiguration configuration)
Parameters
| Type | Name | Description |
|---|---|---|
| TNode | node | |
| TConfiguration | configuration |
Returns
| Type | Description |
|---|---|
| System.Boolean | True if a given node has already a configuration. |
RemoveConfiguration(TNode)
Removes configuration of a given node.
Declaration
void RemoveConfiguration(TNode node)
Parameters
| Type | Name | Description |
|---|---|---|
| TNode | node |
SetConfiguration(TNode, TConfiguration)
Sets a configurations of a given node.
Declaration
void SetConfiguration(TNode node, TConfiguration configuration)
Parameters
| Type | Name | Description |
|---|---|---|
| TNode | node | |
| TConfiguration | configuration |