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.

Bug 138104 - Adding Invert and Spacing Configuration to Hierarchical Layout
Summary: Adding Invert and Spacing Configuration to Hierarchical Layout
Alias: None
Product: platform
Classification: Unclassified
Component: Graph (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@platform
Depends on:
Reported: 2008-06-24 15:48 UTC by Kris Richards
Modified: 2014-11-05 12:17 UTC (History)
2 users (show)

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description Kris Richards 2008-06-24 15:48:06 UTC
There are certain graphs which demand that the hierarchical layout be inverted (target above source). One such graph would be a UML class diagram. For this 
reason I propose adding a static call to the GraphLayoutFactory to allow for an "inverted" flag to be provided. The default behavior sets inverted to false.

Another call to be added the the GraphLayoutFactory would include "inverted", "horizontal spacing", and "layer spacing" (vertical). The default all remain the 

This is an absolutely trivial addition which is needed immediately by the UML module.
Comment 1 David Kaspar 2008-06-25 20:49:53 UTC
DK01: The change is possible and does not conflict with anything. Maybe it is not necessary to have two methods but only
one with all parameters... but it is not necessary implement it...
Comment 2 David Kaspar 2008-06-25 20:51:46 UTC
DK02: Optionally the "invert" parameter may be replaced by "direction" parameter which would be an enum of values: WEST,
Comment 3 Jaroslav Tulach 2014-11-05 12:17:42 UTC
I guess the review didn't go as "fast" as expected. The URL is still valid, but I am afraid, we still need somebody to create a patch & finish the review.