Class GraphZoomScrollPaneDemo

java.lang.Object
edu.uci.ics.jung.samples.GraphZoomScrollPaneDemo

public class GraphZoomScrollPaneDemo extends Object
Demonstrates the use of GraphZoomScrollPane. This class shows the VisualizationViewer zooming and panning capabilities, using horizontal and vertical scrollbars.

This demo also shows ToolTips on graph vertices and edges, and a key listener to change graph mouse modes.

  • Field Details

  • Constructor Details

    • GraphZoomScrollPaneDemo

      public GraphZoomScrollPaneDemo()
      create an instance of a simple graph with controls to demo the zoom features.
  • Method Details

    • createVertices

      private String[] createVertices(int count)
      create some vertices
      Parameters:
      count - how many to create
      Returns:
      the Vertices in an array
    • createEdges

      void createEdges(String[] v)
      create edges for this demo graph
      Parameters:
      v - an array of Vertices to connect
    • main

      public static void main(String[] args)