org.netbeans.api.visual 2.28.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
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.
 
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

setTreeGraphLayoutProperties

public 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.

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
minimizeGap - if true, then minimize the gap between cells; if false do the normal tree layout.
Since:
2.25

setTreeGraphLayoutProperties

public 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.

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
minimizeGap - 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
Since:
2.25

org.netbeans.api.visual 2.28.1

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