org.netbeans.api.visual 2.10

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

java.lang.Object
  extended by 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

Constructor Summary
GraphLayoutFactory()
           
 
Method Summary
static
<N,E> GraphLayout<N,E>
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
 

Constructor Detail

GraphLayoutFactory

public GraphLayoutFactory()
Method Detail

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 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
Returns:
the tree graph layout
Since:
2.4

org.netbeans.api.visual 2.10

Built on August 13 2008.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.