org.xistrat.util.d3.vrmlgraph
Class NodeMover

java.lang.Object
  extended by org.xistrat.util.d3.vrmlgraph.NodeMover

public class NodeMover
extends java.lang.Object

An instance of this class can be used to perform 3-D spring embedding on the GraphData that is passed via its constructor.

Since:
0.6.90

Constructor Summary
NodeMover(GraphData graph)
          Constructor for the NodeMover object
 
Method Summary
 void move()
          Apply the spring embedding method to the graph data Calling this method will use the default values for the embedding method.
 void move(double C1, double C2, double C3, double C4, long M)
          Apply the spring embedding method to the graph data.
 void move(long M)
          Apply the spring embedding method to the graph data Calling this method allows the number of calculations to be specified, but all other values shall take their defaults.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeMover

public NodeMover(GraphData graph)
Constructor for the NodeMover object

Parameters:
graph - The GraphData object to be spring embedded
Method Detail

move

public void move()
Apply the spring embedding method to the graph data Calling this method will use the default values for the embedding method.


move

public void move(long M)
Apply the spring embedding method to the graph data Calling this method allows the number of calculations to be specified, but all other values shall take their defaults.

Parameters:
M - The number of calculations to perform during the spring embedding

move

public void move(double C1,
                 double C2,
                 double C3,
                 double C4,
                 long M)
Apply the spring embedding method to the graph data.

Parameters:
C1 - A constant value used in the spring embedding
C2 - A constant value used in the spring embedding
C3 - A constant value used in the spring embedding
C4 - A constant value used in the spring embedding
M - The number of calculations to perform during the spring embedding