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 - Better Layout for ConnectionWidget labels.
Summary: Better Layout for ConnectionWidget labels.
Status: RESOLVED DUPLICATE of bug 128348
Alias: None
Product: platform
Classification: Unclassified
Component: Graph (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Kris Richards
URL:
Keywords:
Depends on:
Blocks: 105060
  Show dependency tree
 
Reported: 2007-11-05 16:45 UTC by Trey Spiva
Modified: 2008-07-24 17:46 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
The labels on a vertical edge (11.56 KB, application/octet-stream)
2007-11-05 16:59 UTC, Trey Spiva
Details
The labels on a horizontal edge (9.97 KB, application/octet-stream)
2007-11-05 17:00 UTC, Trey Spiva
Details

Note You need to log in before you can comment on or make changes to this bug.
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 ***