|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdiva.graph.layout.AbstractGlobalLayout
diva.graph.layout.RandomLayout
public class RandomLayout
A static random layout engine. This class tries to be smart by not placing nodes on top of one another if possible, but doesn't guarantee anything about the layout except that it will fall into the required viewport.
Red |
Field Summary | |
---|---|
private static int |
NUM_ITER
The number of iterations that it will try to place a node not on top of other nodes before it gives up. |
Fields inherited from class diva.graph.layout.AbstractGlobalLayout |
---|
_layoutTarget |
Constructor Summary | |
---|---|
RandomLayout(LayoutTarget target)
Simple constructor. |
Method Summary | |
---|---|
void |
layout(java.lang.Object composite)
Layout the graph model and viewport specified by the given target environment. |
Methods inherited from class diva.graph.layout.AbstractGlobalLayout |
---|
getLayoutTarget, setLayoutTarget |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final int NUM_ITER
Constructor Detail |
---|
public RandomLayout(LayoutTarget target)
Method Detail |
---|
public void layout(java.lang.Object composite)
layout
in interface GlobalLayout
layout
in class AbstractGlobalLayout
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |