org.netbeans.api.visual.graph.layout
Class GraphLayoutSupport
java.lang.Object
org.netbeans.api.visual.graph.layout.GraphLayoutSupport
public class GraphLayoutSupport
- extends Object
- Since:
- 2.4
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GraphLayoutSupport
public GraphLayoutSupport()
setTreeGraphLayoutRootNode
public static <N,E> void setTreeGraphLayoutRootNode(GraphLayout<N,E> graph,
N rootNode)
- Sets a root node to a tree graph layout.
- Parameters:
graph
- the tree graph layoutrootNode
- the root node- Since:
- 2.4
setTreeGraphLayoutProperties
public 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.
- Parameters:
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 horizontally- Since:
- 2.7