|
org.netbeans.api.visual 2.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.netbeans.api.visual.graph.layout.TreeGraphLayout<N,E>
public class TreeGraphLayout<N,E>
This class supplies the tree graph-oriented layout for a GraphScene.
| Constructor Summary | |
|---|---|
TreeGraphLayout(GraphScene<N,E> scene,
int originX,
int originY,
int verticalGap,
int horizontalGap,
boolean vertical)
Creates a graph-oriented tree layout. |
|
| Method Summary | |
|---|---|
void |
layout(N rootNode)
Invokes the layout for a specified root node. |
protected Collection<N> |
resolveChildren(N node)
Collects a collection of children nodes of a specified node. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TreeGraphLayout(GraphScene<N,E> scene, int originX, int originY, int verticalGap, int horizontalGap, boolean vertical)
scene - the GraphScene where the layout is usedoriginX - the x-axis originoriginY - the y-axis originverticalGap - the vertical gap between cellshorizontalGap - the horizontal gap between cellsvertical - if true, then layout organizes the graph vertically; if false, then horizontally| Method Detail |
|---|
public final void layout(N rootNode)
rootNode - the root nodeprotected Collection<N> resolveChildren(N node)
node - the node
|
org.netbeans.api.visual 2.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||