Class EdgeLabelDemo

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

public class EdgeLabelDemo extends JApplet
Demonstrates jung support for drawing edge labels that can be positioned at any point along the edge, and can be rotated to be parallel with the edge.
See Also:
  • Field Details

  • Constructor Details

    • EdgeLabelDemo

      public EdgeLabelDemo()
      create an instance of a simple graph with controls to demo the label positioning features
  • Method Details

    • createVertices

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

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

      public static void main(String[] args)