com.hp.hpl.guess.layout
Class RandomGraphLayout

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

public class RandomGraphLayout
extends AbstractLayout

Author:
Hacked by Eytan Adar for Guess classes

Field Summary
 boolean done
           
 
Constructor Summary
RandomGraphLayout(Graph g, int width, int height)
           
 
Method Summary
 void advancePositions()
           
 Coordinates getCoordinates(Node v)
           
 int getHeight()
          Gets the height of the area on which to layout the graph.
 int getWidth()
          Gets the width of the area on which to layout the graph.
 double getX(Vertex n)
           
 double getY(Vertex n)
           
 boolean incrementsAreDone()
           
 void initialize_local_vertex(Vertex v)
           
 void initialize_local()
           
 boolean isIncremental()
           
 void setPad(int p)
          Sets the number of pixels to shrink radius by.
 void setUpdate(boolean doUpdate)
           
 
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

done

public boolean done
Constructor Detail

RandomGraphLayout

public RandomGraphLayout(Graph g,
                         int width,
                         int height)
Method Detail

setPad

public void setPad(int p)
Sets the number of pixels to shrink radius by. Java draws object from top left hand corner and this allows objects drawn on the far right to be visible.


advancePositions

public void advancePositions()

getHeight

public int getHeight()
Gets the height of the area on which to layout the graph.


getWidth

public int getWidth()
Gets the width of the area on which to layout the graph.


setUpdate

public void setUpdate(boolean doUpdate)

getX

public double getX(Vertex n)

getY

public double getY(Vertex n)

getCoordinates

public Coordinates getCoordinates(Node v)

incrementsAreDone

public boolean incrementsAreDone()

initialize_local_vertex

public void initialize_local_vertex(Vertex v)

initialize_local

public void initialize_local()

isIncremental

public boolean isIncremental()