The listener interface for receiving graph events.
Namespace: yWorks.yFiles.AlgorithmsAssembly: yWorks.yFilesSilverlight.Algorithms (in yWorks.yFilesSilverlight.Algorithms.dll) Version: 2.1.0.2
Syntax
| C# |
|---|
public interface IGraphListener |
| Visual Basic |
|---|
Public Interface IGraphListener |
Remarks
The listener interface for receiving graph events.
A class that is interested in processing a graph event implements this interface.
The object created with that class is then registered with a graph.
When the graph structure changes, the listener object's
onGraphEvent
method is invoked.
The listener object's onGraphEvent method is also invoked on so-called PRE and
POST events emitted by the graph.
These events signal that a (possibly empty) sequence of graph events is about
to be emitted (PRE event) or that the sequence is completed (POST event).
For example, if a node is about to be removed from a graph, then the following
sequence of graph events can be observed:
- a PRE event
- a (possibly empty) sequence of edge removal events
- the actual node removal event
- a POST event