com.hp.hpl.guess.layout
Class GEM
java.lang.Object
edu.uci.ics.jung.visualization.AbstractLayout
com.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
Constructor Summary |
GEM(Graph g)
Constructor |
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 |
Name
public static final String Name
- See Also:
- Constant Field Values
done
public boolean done
GEM
public GEM(Graph g)
- Constructor
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()