Class VertexCollapseDemoWithLayouts

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

public class VertexCollapseDemoWithLayouts extends JApplet
A demo that shows how collections of vertices can be collapsed into a single vertex. In this demo, the vertices that are collapsed are those mouse-picked by the user. Any criteria could be used to form the vertex collections to be collapsed, perhaps some common characteristic of those vertex objects. Note that the collection types don't use generics in this demo, because the vertices are of two types: String for plain vertices, and Graph<String, Number> for the collapsed vertices.
See Also:
  • Field Details

  • Constructor Details

    • VertexCollapseDemoWithLayouts

      public VertexCollapseDemoWithLayouts()
  • Method Details

    • getCombos

      private Class<? extends Layout>[] getCombos()
      Returns:
    • main

      public static void main(String[] args)