com.hp.hpl.guess.layout
Class RandomGraphLayout
java.lang.Object
edu.uci.ics.jung.visualization.AbstractLayout
com.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
|
| 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 |
done
public boolean done
RandomGraphLayout
public RandomGraphLayout(Graph g,
int width,
int height)
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()