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.

View | Details | Raw Unified | Return to bug 111339
Collapse All | Expand All

(-)graph/lib/apichanges.xml (+14 lines)
Lines 444-449 Link Here
444
            <class package="org.netbeans.api.visual.widget" name="Widget" link="yes"/>
444
            <class package="org.netbeans.api.visual.widget" name="Widget" link="yes"/>
445
            <issue number="108856"/>
445
            <issue number="108856"/>
446
        </change>
446
        </change>
447
448
        <change>
449
            <api name="general"/>
450
            <summary>GraphLayouSupport.setTreeGraphLayoutProperties method introduced</summary>
451
            <version major="2" minor="8"/>
452
            <date day="1" month="8" year="2007"/>
453
            <author login="dkaspar"/>
454
            <compatibility semantic="compatible" addition="yes"/>
455
            <description>
456
                The GraphLayouSupport.setTreeGraphLayoutProperties method allows change properties of tree graph layout i.e. originX, originY, verticalGap, horizontalGap, vertical.
457
            </description>
458
            <class package="org.netbeans.api.visual.graph.layout" name="GraphLayoutSupport" link="yes"/>
459
            <issue number="111339"/>
460
        </change>
447
    </changes>
461
    </changes>
448
462
449
    <htmlcontents>
463
    <htmlcontents>
(-)graph/lib/manifest.mf (-1 / +1 lines)
Lines 1-4 Link Here
1
Manifest-Version: 1.0
1
Manifest-Version: 1.0
2
OpenIDE-Module: org.netbeans.api.visual
2
OpenIDE-Module: org.netbeans.api.visual
3
OpenIDE-Module-Localizing-Bundle: org/netbeans/modules/visual/resources/Bundle.properties
3
OpenIDE-Module-Localizing-Bundle: org/netbeans/modules/visual/resources/Bundle.properties
4
OpenIDE-Module-Specification-Version: 2.6
4
OpenIDE-Module-Specification-Version: 2.8
(-)graph/lib/src/org/netbeans/api/visual/graph/layout/GraphLayoutFactory.java (+1 lines)
Lines 32-37 Link Here
32
     * Creates a tree graph layout.
32
     * Creates a tree graph layout.
33
     * Use GraphLayoutSupport.setTreeGraphLayoutRootNode method to set the root node of the graph.
33
     * Use GraphLayoutSupport.setTreeGraphLayoutRootNode method to set the root node of the graph.
34
     * If not set/found, then layout is not executed.
34
     * If not set/found, then layout is not executed.
35
     * Note: Use GraphLayoutSupport.setTreeGraphLayoutProperties method to set the parameters of the layout later.
35
     * @param originX the x-axis origin
36
     * @param originX the x-axis origin
36
     * @param originY the y-axis origin
37
     * @param originY the y-axis origin
37
     * @param verticalGap the vertical gap between cells
38
     * @param verticalGap the vertical gap between cells
(-)graph/lib/src/org/netbeans/api/visual/widget/doc-files/documentation.html (+3 lines)
Lines 1762-1767 Link Here
1762
The layout can be created using <code>GraphLayoutFactory.createTreeGraphLayout</code> factory method.
1762
The layout can be created using <code>GraphLayoutFactory.createTreeGraphLayout</code> factory method.
1763
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.
1763
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.
1764
1764
1765
<p>
1766
Using <code>GraphLayoutSupport.setTreeGraphLayoutProperties</code> method you can set all parameters of the tree graph layout that has been specified in the factory method.
1767
1765
<h3><a name="GridGraphLayout">GridGraphLayout</a></h3>
1768
<h3><a name="GridGraphLayout">GridGraphLayout</a></h3>
1766
1769
1767
<p>
1770
<p>
(-)graph/lib/src/org/netbeans/modules/visual/graph/layout/TreeGraphLayout.java (+8 lines)
Lines 50-55 Link Here
50
        this.rootNode = rootNode;
50
        this.rootNode = rootNode;
51
    }
51
    }
52
52
53
    public void setProperties (int originX, int originY, int verticalGap, int horizontalGap, boolean vertical) {
54
        this.originX = originX;
55
        this.originY = originY;
56
        this.verticalGap = verticalGap;
57
        this.horizontalGap = horizontalGap;
58
        this.vertical = vertical;
59
    }
60
53
    protected void performGraphLayout (UniversalGraph<N, E> graph) {
61
    protected void performGraphLayout (UniversalGraph<N, E> graph) {
54
        if (rootNode == null)
62
        if (rootNode == null)
55
            return;
63
            return;

Return to bug 111339