jas.graph.layout
Class RandomLayout

java.lang.Object
  extended by jas.graph.layout.RandomLayout
All Implemented Interfaces:
ILayout

public class RandomLayout
extends java.lang.Object
implements ILayout

Author:
Riccardo Boero

Constructor Summary
RandomLayout(org._3pq.jgrapht.Graph graph, java.awt.Dimension dimension)
           
 
Method Summary
 java.awt.Dimension getDimension()
           
 org._3pq.jgrapht.Graph getGraph()
           
 void init()
           
 void setDimension(java.awt.Dimension dimension)
           
 void setGraph(org._3pq.jgrapht.Graph graph)
           
 void update()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RandomLayout

public RandomLayout(org._3pq.jgrapht.Graph graph,
                    java.awt.Dimension dimension)
Method Detail

getDimension

public java.awt.Dimension getDimension()
Specified by:
getDimension in interface ILayout
Returns:
Returns the dimension.

getGraph

public org._3pq.jgrapht.Graph getGraph()
Specified by:
getGraph in interface ILayout
Returns:
Returns the graph.

init

public void init()
Specified by:
init in interface ILayout

setDimension

public void setDimension(java.awt.Dimension dimension)
Specified by:
setDimension in interface ILayout
Parameters:
dimension - The dimension to set.

setGraph

public void setGraph(org._3pq.jgrapht.Graph graph)
Specified by:
setGraph in interface ILayout
Parameters:
graph - The graph to set.

update

public void update()
Specified by:
update in interface ILayout