samples.graph
Class PluggableRendererDemo

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjava.awt.Panel
              extended byjava.applet.Applet
                  extended byjavax.swing.JApplet
                      extended bysamples.graph.PluggableRendererDemo
All Implemented Interfaces:
Accessible, ActionListener, EventListener, ImageObserver, MenuContainer, RootPaneContainer, Serializable

public class PluggableRendererDemo
extends JApplet
implements ActionListener

Shows off some of the capabilities of PluggableRenderer. This code provides examples of different ways to provide and change the various functions that provide property information to the renderer.

This demo creates a random mixed-mode graph with random edge weights using TestGraph.generateMixedRandomGraph. It then runs VoltageRanker on this graph, using half of the "seed" vertices from the random graph generation as voltage sources, and half of them as voltage sinks.

What the controls do: