Using the IlvGrapherAdapter
The
IlvGrapherAdapter class is a concrete subclass of
IlvGraphModel that allows an
IlvGrapher to be laid out using the layout algorithms provided in Rogue Wave Views. It provides an implementation for all the abstract methods of
IlvGraphModel. It also provides an overridden implementation of some nonabstract methods of
IlvGraphModel to improve efficiency by taking advantage of the characteristics of the
IlvGrapher.
If an application uses the IlvGrapher class, the grapher can be attached directly to the layout instance without explicitly using the adapter. (See the IlvGraphLayout::attach(IlvGrapher*)method.) In this case, an IlvGrapherAdapter is created internally by the layout class. The adapter can be retrieved using the IlvGraphLayout::getGraphModel()method, which will return an instance of IlvGrapherAdapter.
Additionally, the IlvGrapherAdapter class provides a way to filter the IlvGrapher. By using the filtering mechanism, you specify a particular set of nodes and links that have to be taken into account by the layout algorithm. (See Using the Filtering Features to Lay Out a Part of an IlvGrapher.)
The IlvGrapherAdapter class also allows you to specify the IlvTransformer that has to be used for computing the geometry of the graph. (See Laying Out Graphs with Nonzoomable Graphic Objects.)
Note: For details on how to write your own adapter, see Laying Out a Non-Views Grapher. |
Version 6.3
Copyright © 2018, Rogue Wave Software, Inc. All Rights Reserved.