This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
<class package="org.netbeans.api.visual.widget" name="Widget" link="yes"/>
<issue number="108856"/>
</change>
<change>
<api name="general"/>
<summary>GraphLayouSupport.setTreeGraphLayoutProperties method introduced</summary>
<version major="2" minor="8"/>
<date day="1" month="8" year="2007"/>
<author login="dkaspar"/>
<compatibility semantic="compatible" addition="yes"/>
<description>
The GraphLayouSupport.setTreeGraphLayoutProperties method allows change properties of tree graph layout i.e. originX, originY, verticalGap, horizontalGap, vertical.
</description>
<class package="org.netbeans.api.visual.graph.layout" name="GraphLayoutSupport" link="yes"/>
<issue number="111339"/>
</changes>
<htmlcontents>
Manifest-Version: 1.0
OpenIDE-Module: org.netbeans.api.visual
OpenIDE-Module-Localizing-Bundle: org/netbeans/modules/visual/resources/Bundle.properties
OpenIDE-Module-Specification-Version: 2.6
OpenIDE-Module-Specification-Version: 2.8
* 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.
* @param originX the x-axis origin
* @param originY the y-axis origin
* @param verticalGap the vertical gap between cells
The layout can be created using <code>GraphLayoutFactory.createTreeGraphLayout</code> factory method.
For proper work, you have to specify a root node using <code>GraphLayoutSupport.setTreeGraphLayoutRootNode</code> method. See <code>test.graphlayout.TreeGraphLayoutTest</code> example for usages.
<p>
Using <code>GraphLayoutSupport.setTreeGraphLayoutProperties</code> method you can set all parameters of the tree graph layout that has been specified in the factory method.
<h3><a name="GridGraphLayout">GridGraphLayout</a></h3>
this.rootNode = rootNode;
}
public void setProperties (int originX, int originY, int verticalGap, int horizontalGap, boolean vertical) {
this.originX = originX;
this.originY = originY;
this.verticalGap = verticalGap;
this.horizontalGap = horizontalGap;
this.vertical = vertical;
protected void performGraphLayout (UniversalGraph<N, E> graph) {
if (rootNode == null)
return;