Class WorldMapGraphDemo

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer

public class WorldMapGraphDemo extends JApplet
Shows a graph overlaid on a world map image. Scaling of the graph also scales the image background.
See Also:
  • Field Details

  • Constructor Details

    • WorldMapGraphDemo

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

    • createVertices

      private void createVertices()
      create some vertices
      Parameters:
      count - how many to create
    • createEdges

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

      private String randomCity()
    • main

      public static void main(String[] args)