Java Data Sources > Working with the Server/Java Mapping > Graphs > IlsGraphDataSource
 
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.
*GraphDSListener: is notified when a node or a link is added, removed, or updated.
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 Rogue Wave Server notifications, and with modification events occurring on the IlvGrapher objects.

Version 6.3
Copyright © 2018, Rogue Wave Software, Inc. All Rights Reserved.