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

Summary: Adding Invert and Spacing Configuration to Hierarchical Layout
Product: platform Reporter: Kris Richards <krichard>
Component: GraphAssignee: issues@platform <issues>
Status: RESOLVED INCOMPLETE    
Severity: blocker CC: apireviews, jglick
Priority: P3 Keywords: API_REVIEW_FAST
Version: 6.x   
Hardware: All   
OS: All   
URL: http://wiki.netbeans.org/GraphLibraryHierarchicalLayoutUpdate01APIReview
Issue Type: ENHANCEMENT Exception Reporter:

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

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,
EAST, NORTH, SOUTH.
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.