|
org.netbeans.api.visual 2.35 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.netbeans.api.visual.graph.layout.GraphLayoutFactory
public class GraphLayoutFactory
The factory class of all built-in GraphLayout based implementations.
| Constructor Summary | |
|---|---|
GraphLayoutFactory()
|
|
| Method Summary | ||
|---|---|---|
static
|
createHierarchicalGraphLayout(GraphScene<N,E> graphScene,
boolean animate)
|
|
static
|
createHierarchicalGraphLayout(GraphScene<N,E> graphScene,
boolean animate,
boolean inverted)
|
|
static
|
createHierarchicalGraphLayout(GraphScene<N,E> graphScene,
boolean animate,
boolean inverted,
int xOffset,
int layerOffset)
|
|
static
|
createOrthogonalGraphLayout(GraphScene<N,E> graphScene,
boolean animate)
|
|
static
|
createTreeGraphLayout(int originX,
int originY,
int verticalGap,
int horizontalGap,
boolean vertical)
Creates a tree graph layout. |
|
static
|
createTreeGraphLayout(int originX,
int originY,
int verticalGap,
int horizontalGap,
boolean vertical,
boolean minimizeGap)
Creates a tree graph layout. |
|
static
|
createTreeGraphLayout(int originX,
int originY,
int verticalGap,
int horizontalGap,
boolean vertical,
boolean minimizeGap,
TreeGraphLayoutAlignment alignment)
Creates a tree graph layout. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GraphLayoutFactory()
| Method Detail |
|---|
public static <N,E> GraphLayout<N,E> createTreeGraphLayout(int originX,
int originY,
int verticalGap,
int horizontalGap,
boolean vertical)
originX - 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
public static <N,E> GraphLayout<N,E> createTreeGraphLayout(int originX,
int originY,
int verticalGap,
int horizontalGap,
boolean vertical,
boolean minimizeGap)
originX - 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 horizontallyminimizeGap - if true, then minimize the gap between cells; if false do the normal tree layout
public static <N,E> GraphLayout<N,E> createTreeGraphLayout(int originX,
int originY,
int verticalGap,
int horizontalGap,
boolean vertical,
boolean minimizeGap,
TreeGraphLayoutAlignment alignment)
originX - 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 horizontallyminimizeGap - if true, then minimize the gap between cells; if false do the normal tree layoutalignment - the alignment of the nodes in their level. Choose wheter TreeGraphLayout.Alignment.TOP, TreeGraphLayout.Alignment.CENTER or TreeGraphLayout.Alignment.BOTTOM
public static <N,E> GraphLayout<N,E> createOrthogonalGraphLayout(GraphScene<N,E> graphScene,
boolean animate)
N - the node class for the nodes in the graph.E - the edge class for the edges in the graph.graphScene - the GraphScene on which the layout is to be invoked.animate - if true, the layout will animate the nodes into their new
positions.
public static <N,E> GraphLayout<N,E> createHierarchicalGraphLayout(GraphScene<N,E> graphScene,
boolean animate)
N - the node class for the nodes in the graph.E - the edge class for the edges in the graph.graphScene - the GraphScene on which the layout is to be invoked.animate - if true, the layout will animate the nodes into their new
positions.
public static <N,E> GraphLayout<N,E> createHierarchicalGraphLayout(GraphScene<N,E> graphScene,
boolean animate,
boolean inverted)
N - the node class for the nodes in the graph.E - the edge class for the edges in the graph.graphScene - the GraphScene on which the layout is to be invoked.animate - if true, the layout will animate the nodes into their new
positions.inverted - if true, the target nodes of an edge will be poisitioned
in a layer higher than its source node.
public static <N,E> GraphLayout<N,E> createHierarchicalGraphLayout(GraphScene<N,E> graphScene,
boolean animate,
boolean inverted,
int xOffset,
int layerOffset)
N - the node class for the nodes in the graph.E - the edge class for the edges in the graph.graphScene - the GraphScene on which the layout is to be invoked.animate - if true, the layout will animate the nodes into their new
positions.inverted - if true, the target nodes of an edge will be poisitioned
in a layer higher than its source node.xOffset - the horizontal distance or gutter between the nodes.layerOffset - the vertical distance between the layers of nodes.
|
org.netbeans.api.visual 2.35 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||