fcmodeler.layout
Class InitialLayout

java.lang.Object
  |
  +--diva.graph.model.GraphAdapter
        |
        +--diva.graph.layout.RandomIncrLayout
              |
              +--fcmodeler.layout.InitialLayout
All Implemented Interfaces:
java.util.EventListener, diva.graph.model.GraphListener, diva.graph.layout.IncrementalLayout

public class InitialLayout
extends diva.graph.layout.RandomIncrLayout

This class was needed because Diva's RandomIncrLayout is stupid when an entire graph needs to be layed out randomly, as in the initial display of a graph after loading from a file. It took RandomIncrLayout approximately 24 seconds to perform the layout of a 200 node, 200 edge graph running on a 1GHz Athlon w/ 256MB of RAM. This class performs the same layout in approximately 0.8 seconds.

Since:
JDK1.3
Version:
$Revision: 1.5 $
Author:
Zach Cox

Constructor Summary
InitialLayout(diva.graph.layout.LayoutTarget target)
          Creates new InitialLayout
 
Method Summary
 void structureChanged(diva.graph.model.GraphEvent graphEvent)
           
 
Methods inherited from class diva.graph.layout.RandomIncrLayout
edgeHeadChanged, edgeTailChanged, nodeAdded
 
Methods inherited from class diva.graph.model.GraphAdapter
nodeRemoved
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface diva.graph.model.GraphListener
nodeRemoved
 

Constructor Detail

InitialLayout

public InitialLayout(diva.graph.layout.LayoutTarget target)
Creates new InitialLayout
Method Detail

structureChanged

public void structureChanged(diva.graph.model.GraphEvent graphEvent)
Overrides:
structureChanged in class diva.graph.layout.RandomIncrLayout