Graph Controllers

There are two GraphController implementations supplied with the Tensegrity API. Each implementation manages a special type of communication between a Graph model and its views.

The interface GraphController defines the behavior for classes responsible for notifying Graph and VisualGraphView objects about changes that have taken place in both a model and in a view. A GraphController therefore manages the views that are attached to a given graph.

The pertinent methods specified in interface GraphController are the following:

Note

Please note that the methods addVisualGraph and removeVisualGraph are used to register and unregister views in a controller instance. Different controller instances may coexist at runtime which implement deviant registration behaviors.