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 121204

Summary: Better Layout for ConnectionWidget labels.
Product: platform Reporter: Trey Spiva <tspiva>
Component: GraphAssignee: Kris Richards <krichard>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P2    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:
Bug Depends on:    
Bug Blocks: 105060    
Attachments: The labels on a vertical edge
The labels on a horizontal edge

Description Trey Spiva 2007-11-05 16:45:54 UTC
The default layout manager for connection widgets does not take into account the direction of the edge.  So, in order to make the label look correct you have 
to calculate the direction of the edge, and then determine the correct constraint.  This would work for when you create the edge, however it will not work for 
when the nodes move and the direction of the edge changes.

It would be nice to have a layout manager that would layout the edge to mean the following Top is above the edge if the edge is horizontal, and to the right 
of the edge if the edge is vertical, and bottom is below the edge if the edge is horizontal and to the left of the edge if the edge is vertical.
Comment 1 Trey Spiva 2007-11-05 16:59:50 UTC
Created attachment 52539 [details]
The labels on a vertical edge
Comment 2 Trey Spiva 2007-11-05 17:00:32 UTC
Created attachment 52540 [details]
The labels on a horizontal edge
Comment 3 David Kaspar 2007-11-06 12:38:31 UTC
The Layout would just have count with "ConnectionWidget.getControlPoints()" or "Anchor.compute().getDirections()" which
resolving Widget locations.
Comment 4 Trey Spiva 2008-07-24 17:46:34 UTC
This should have been fixed by the issue 128348.

*** This issue has been marked as a duplicate of 128348 ***