This example demonstrates JUNG's ability to show multiple views of the same graph, and to share transformers between mutliple views. There is one VisualizationModel with one Layout, and there are three VisualizationViewers, one for each View. All three views share the same layout transformer, and all three views share the same view transformer. Each View uses a different style of scaling with the mouse wheel. In View 1, the mouse wheel scales the layout transformer, so all three views are affected. In View 2, the mouse wheel scales the view transformer, so all three views are scaled with the view transformer. In View 3, the mouse wheel uses a Crossover feature. All scaling above 1.0 is done in the shared layout transformer. All scaling below 1.0 is done in the shared view transformer.
Be sure to try out the mouse listeners: