IlsGraphDataSource
Description
The graph data source is a bridge class which is notified by the server of creation, deletion, or update events occurring in the graph, its nodes, and its links. Thus, a graph data source is also a source-events class that manages listeners. The class IlsGraphDS2IlvGrapherAdapter provides a default implementation for all the events produced by the graph data source.
Listeners
-
DataSourceListener: are notified when an event (creation or update) occurs on the origin of the view, that is to say, the graph.
-
BatchListener: are notified when the beginning or the end of a set of events occurs. Note that listening for these events is not mandatory, but useful to optimize the operations following changes in the data source.
Adapter
An adapter (IlsGraphDS2IlvGrapherAdapter) is provided to implement all the listeners managed by the Graph data source. This adapter also interfaces an IlvGrapher to synchronize the data source with the graph, according to Server notifications, and with modification events occurring on the IlvGrapher objects.