diva.graph.layout
Class RandomLayout
java.lang.Object
extended bydiva.graph.layout.AbstractGlobalLayout
extended bydiva.graph.layout.RandomLayout
- All Implemented Interfaces:
- GlobalLayout
- public class RandomLayout
- extends AbstractGlobalLayout
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.
- Version:
- $Id: RandomLayout.java,v 1.14 2005年07月08日 19:55:05 cxh Exp $
- Author:
- Michael Shilman
- Accepted Rating:
Red
|
Method Summary |
void |
layout(java.lang.Object composite)
Layout the graph model and viewport specified by the given
target environment. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RandomLayout
public RandomLayout(LayoutTarget target)
- Simple constructor.
layout
public void layout(java.lang.Object composite)
- Layout the graph model and viewport specified by the given
target environment. 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.
- Specified by:
layout in interface GlobalLayout- Specified by:
layout in class AbstractGlobalLayout
-