|
JavaGenes, NASA Ames. Written largely by Al Globus | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.javaGenes.graph.GraphLayout
this class is an interface to the jiggle package that does graph layout for viewing.
Nested Class Summary | |
protected class |
GraphLayout.CoordinateProvider
|
Field Summary | |
double |
accuracyOfLineSearch
|
double |
BarnesHutTheta
|
double |
border
|
double |
edgeLength
|
int |
iterations
|
int |
maxLineSearchIterations
|
double |
restartThreshold
|
double |
vertexSize
|
Constructor Summary | |
GraphLayout()
|
Method Summary | |
protected void |
grid(jiggle.Graph graph,
double size)
put the xy is the locations of each vertex near the points in a three-dimensional grid |
void |
layout2d(Graph graph)
provided xyz locations for every vertex in the graph in such a way that the graph looks ok in two dimensions |
protected jiggle.ForceModel |
makeForceModel(jiggle.Graph graph)
|
protected jiggle.Graph |
makeGraph(Graph graph)
used before layout to turn a JavaGenes graph into a jiggle graph |
protected jiggle.FirstOrderOptimizationProcedure |
makeOptimization(jiggle.Graph graph,
jiggle.ForceModel model)
|
protected void |
scramble(jiggle.Graph graph,
double size)
set the xyz locations of vertices in a graph to random values |
java.lang.String |
toString()
|
protected void |
updatePositions(jiggle.Graph from,
Graph to)
called after layout to move xyz locations to a JavaGenes graph |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public int iterations
public int maxLineSearchIterations
public double vertexSize
public double edgeLength
public double border
public double BarnesHutTheta
public double accuracyOfLineSearch
public double restartThreshold
Constructor Detail |
public GraphLayout()
Method Detail |
public java.lang.String toString()
public void layout2d(Graph graph)
protected jiggle.Graph makeGraph(Graph graph)
protected jiggle.ForceModel makeForceModel(jiggle.Graph graph)
protected jiggle.FirstOrderOptimizationProcedure makeOptimization(jiggle.Graph graph, jiggle.ForceModel model)
protected void scramble(jiggle.Graph graph, double size)
size
- edge length of the cube within which all vertices will fallprotected void grid(jiggle.Graph graph, double size)
protected void updatePositions(jiggle.Graph from, Graph to)
|
JavaGenes, NASA Ames. Written largely by Al Globus | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |