org.netbeans.api.visual 2.23.1

org.netbeans.api.visual.graph.layout
Class GraphLayoutSupport

java.lang.Object
  extended by org.netbeans.api.visual.graph.layout.GraphLayoutSupport

public class GraphLayoutSupport
extends Object

Since:
2.4

Constructor Summary
GraphLayoutSupport()
           
 
Method Summary
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
setTreeGraphLayoutRootNode(GraphLayout<N,E> graph, N rootNode)
          Sets a root node to a tree graph layout.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphLayoutSupport

public GraphLayoutSupport()
Method Detail

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 layout
rootNode - 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 layout
originX - the x-axis origin
originY - the y-axis origin
verticalGap - the vertical gap between cells
horizontalGap - the horizontal gap between cells
vertical - if true, then layout organizes the graph vertically; if false, then horizontally
Since:
2.7

org.netbeans.api.visual 2.23.1

Built on February 9 2011.  |  Portions Copyright 1997-2011 Sun Microsystems, Inc. All rights reserved.