public class GraphLayoutSupport extends Object
Constructor and Description |
---|
GraphLayoutSupport() |
Modifier and Type | Method and Description |
---|---|
static <N,E> void |
setTreeGraphLayoutProperties(GraphLayout<N,E> graph,
int originX,
int originY,
int verticalGap,
int horizontalGap,
boolean vertical)
Sets properties to a tree graph layout.
|
static <N,E> void |
setTreeGraphLayoutProperties(GraphLayout<N,E> graph,
int originX,
int originY,
int verticalGap,
int horizontalGap,
boolean vertical,
boolean minimizeGap)
Sets properties to a tree graph layout.
|
static <N,E> void |
setTreeGraphLayoutProperties(GraphLayout<N,E> graph,
int originX,
int originY,
int verticalGap,
int horizontalGap,
boolean vertical,
boolean minimizeGap,
TreeGraphLayoutAlignment alignment)
Sets properties to a tree graph layout.
|
static <N,E> void |
setTreeGraphLayoutRootNode(GraphLayout<N,E> graph,
N rootNode)
Sets a root node to a tree graph layout.
|
public static <N,E> void setTreeGraphLayoutRootNode(GraphLayout<N,E> graph, N rootNode)
graph
- the tree graph layoutrootNode
- the root nodepublic static <N,E> void setTreeGraphLayoutProperties(GraphLayout<N,E> graph, int originX, int originY, int verticalGap, int horizontalGap, boolean vertical)
graph
- the tree graph layoutoriginX
- 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 horizontallypublic static <N,E> void setTreeGraphLayoutProperties(GraphLayout<N,E> graph, int originX, int originY, int verticalGap, int horizontalGap, boolean vertical, boolean minimizeGap)
graph
- the tree graph layoutoriginX
- 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> void setTreeGraphLayoutProperties(GraphLayout<N,E> graph, int originX, int originY, int verticalGap, int horizontalGap, boolean vertical, boolean minimizeGap, TreeGraphLayoutAlignment alignment)
graph
- the tree graph layoutoriginX
- 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.alignment
- alignment the alignment of the nodes in their level. Choose wheter TreeGraphLayout.Alignment.TOP
, TreeGraphLayout.Alignment.CENTER
or TreeGraphLayout.Alignment.BOTTOM