org.netbeans.api.visual.graph.layout
Class GraphLayoutFactory
java.lang.Object
org.netbeans.api.visual.graph.layout.GraphLayoutFactory
public class GraphLayoutFactory
- extends Object
The factory class of all built-in GraphLayout based implementations.
- Since:
- 2.4
Method Summary |
static
|
createTreeGraphLayout(int originX,
int originY,
int verticalGap,
int horizontalGap,
boolean vertical)
Creates a tree graph layout. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GraphLayoutFactory
public GraphLayoutFactory()
createTreeGraphLayout
public static <N,E> GraphLayout<N,E> createTreeGraphLayout(int originX,
int originY,
int verticalGap,
int horizontalGap,
boolean vertical)
- Creates a tree graph layout.
Use GraphLayoutSupport.setTreeGraphLayoutRootNode method to set the root node of the graph.
If not set/found, then layout is not executed.
Note: Use GraphLayoutSupport.setTreeGraphLayoutProperties method to set the parameters of the layout later.
- Parameters:
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
- Returns:
- the tree graph layout
- Since:
- 2.4