Class ObservableGraphSourceBase<TNode, TLink>
Represents a base class for an observable graph source.
Inherited Members
Namespace: Telerik.Windows.Controls.Diagrams.Extensions.ViewModels
Assembly: Telerik.Windows.Controls.Diagrams.Extensions.dll
Syntax
public class ObservableGraphSourceBase<TNode, TLink> : GraphSourceBase<TNode, TLink>, INotifyPropertyChanged, IDisposable, IObservableGraphSource, IGraphSource where TLink : ILink
Type Parameters
TNode
The type of the node. |
TLink
The type of the link. |
Constructors
ObservableGraphSourceBase()
Declaration
public ObservableGraphSourceBase()
Methods
CreateLink(Object, Object)
Creates a link based on the associated source and target nodes.
Declaration
public virtual ILink CreateLink(object source, object target)
Parameters
System.Object
source
The source node. |
System.Object
target
The target node. |
Returns
ILink
Returns the created link. |
CreateNode(IShape)
Creates a node based on an associated shape.
Declaration
public virtual object CreateNode(IShape shape)
Parameters
IShape
shape
The associated shape. |
Returns
System.Object
Returns the created node. |
Explicit Interface Implementations
IObservableGraphSource.AddLink(ILink)
Adds a link in the Links collection.
Declaration
void IObservableGraphSource.AddLink(ILink link)
Parameters
ILink
link
The link. |
Implements
IObservableGraphSource.AddNode(Object)
Adds a node in the Items collection.
Declaration
void IObservableGraphSource.AddNode(object node)
Parameters
System.Object
node
The node. |
Implements
IObservableGraphSource.CreateLink(Object, Object)
Creates a link based on the associated source and target nodes.
Declaration
ILink IObservableGraphSource.CreateLink(object source, object target)
Parameters
System.Object
source
The source node. |
System.Object
target
The target node. |
Returns
ILink
Returns the created link. |
Implements
IObservableGraphSource.CreateNode(IShape)
Creates a node based on an associated shape.
Declaration
object IObservableGraphSource.CreateNode(IShape shape)
Parameters
IShape
shape
The associated shape. |
Returns
System.Object
Returns the created node. |
Implements
IObservableGraphSource.RemoveLink(ILink)
Removes a link from the Links collection.
Declaration
bool IObservableGraphSource.RemoveLink(ILink link)
Parameters
ILink
link
The link. |
Returns
System.Boolean
|
Implements
IObservableGraphSource.RemoveNode(Object)
Removes a node from the Items collection.
Declaration
bool IObservableGraphSource.RemoveNode(object node)
Parameters
System.Object
node
The node. |
Returns
System.Boolean
|