com.hp.hpl.guess.layout
Class GEM

java.lang.Object
  extended byedu.uci.ics.jung.visualization.AbstractLayout
      extended bycom.hp.hpl.guess.layout.GEM
All Implemented Interfaces:
ChangeEventSupport, Layout, VertexLocationFunction

public class GEM
extends AbstractLayout

Java implementation of the gem 2D layout.
The algorithm needs to get various subgraphs and traversals. The recursive nature of the algorithm is totally captured within those subgraphs and traversals. The main loop of the algorithm is then expressed using the iterator feature, which makes it look like a simple flat iteration over nodes.

Author:
David Duke, Hacked by Eytan Adar for Guess

Field Summary
 boolean done
           
static String Name
           
 
Constructor Summary
GEM(Graph g)
          Constructor
 
Method Summary
 void advancePositions()
           
 void computePositions()
           
 Coordinates getCoordinates(Node v)
           
 String getName()
           
 double getX(Vertex n)
           
 double getY(Vertex n)
           
 boolean incrementsAreDone()
           
 void initialize_local_vertex(Vertex v)
           
 void initialize_local()
           
 void insert()
           
 boolean isIncremental()
           
static int rand()
           
 
Methods inherited from class edu.uci.ics.jung.visualization.AbstractLayout
addChangeListener, applyFilter, dontMove, fireStateChanged, forceMove, getBaseKey, getChangeListeners, getCoordinates, getCurrentSize, getEdge, getEdge, getGraph, getLocation, getStatus, getVertex, getVertex, getVertexIterator, getVisibleEdges, getVisibleVertices, initialize, initialize, lockVertex, removeChangeListener, resize, restart, unlockVertex
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Name

public static final String Name
See Also:
Constant Field Values

done

public boolean done
Constructor Detail

GEM

public GEM(Graph g)
Constructor

Method Detail

getName

public String getName()

rand

public static int rand()

insert

public void insert()

computePositions

public void computePositions()

getX

public double getX(Vertex n)

getY

public double getY(Vertex n)

getCoordinates

public Coordinates getCoordinates(Node v)

incrementsAreDone

public boolean incrementsAreDone()

advancePositions

public void advancePositions()

initialize_local_vertex

public void initialize_local_vertex(Vertex v)

initialize_local

public void initialize_local()

isIncremental

public boolean isIncremental()