public class GraphLayoutFactory extends Object
Constructor and Description 

GraphLayoutFactory() 
Modifier and Type  Method and Description 

static <N,E> GraphLayout<N,E> 
createHierarchicalGraphLayout(GraphScene<N,E> graphScene,
boolean animate) 
static <N,E> GraphLayout<N,E> 
createHierarchicalGraphLayout(GraphScene<N,E> graphScene,
boolean animate,
boolean inverted) 
static <N,E> GraphLayout<N,E> 
createHierarchicalGraphLayout(GraphScene<N,E> graphScene,
boolean animate,
boolean inverted,
int xOffset,
int layerOffset) 
static <N,E> GraphLayout<N,E> 
createOrthogonalGraphLayout(GraphScene<N,E> graphScene,
boolean animate) 
static <N,E> GraphLayout<N,E> 
createTreeGraphLayout(int originX,
int originY,
int verticalGap,
int horizontalGap,
boolean vertical)
Creates a tree graph layout.

static <N,E> GraphLayout<N,E> 
createTreeGraphLayout(int originX,
int originY,
int verticalGap,
int horizontalGap,
boolean vertical,
boolean minimizeGap)
Creates a tree graph layout.

static <N,E> GraphLayout<N,E> 
createTreeGraphLayout(int originX,
int originY,
int verticalGap,
int horizontalGap,
boolean vertical,
boolean minimizeGap,
TreeGraphLayoutAlignment alignment)
Creates a tree graph layout.

public static <N,E> GraphLayout<N,E> createTreeGraphLayout(int originX, int originY, int verticalGap, int horizontalGap, boolean vertical)
originX
 the xaxis originoriginY
 the yaxis originverticalGap
 the vertical gap between cellshorizontalGap
 the horizontal gap between cellsvertical
 if true, then layout organizes the graph vertically; if false, then horizontallypublic static <N,E> GraphLayout<N,E> createTreeGraphLayout(int originX, int originY, int verticalGap, int horizontalGap, boolean vertical, boolean minimizeGap)
originX
 the xaxis originoriginY
 the yaxis 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 layoutpublic static <N,E> GraphLayout<N,E> createTreeGraphLayout(int originX, int originY, int verticalGap, int horizontalGap, boolean vertical, boolean minimizeGap, TreeGraphLayoutAlignment alignment)
originX
 the xaxis originoriginY
 the yaxis 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.Built on August 25 2014.  Portions Copyright 19972014 Oracle. All rights reserved.