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 113573 - API: Add ConnectionWidget.routingPolicy property.
Summary: API: Add ConnectionWidget.routingPolicy property.
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Graph (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@platform
URL:
Keywords: API_REVIEW_FAST
Depends on:
Blocks: 108296
  Show dependency tree
 
Reported: 2007-08-23 09:00 UTC by David Kaspar
Modified: 2007-08-31 11:12 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Patch (37.67 KB, patch)
2007-08-23 10:05 UTC, David Kaspar
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David Kaspar 2007-08-23 09:00:46 UTC
The property should define policy for path routing. There should be 4 values available:
1) Always route
2) Update end points only (router is not invoked at all)
3) Disable routing until end point is moved (router is temporarily disabled until end point is moved)
4) Disable routing (router is not never invoked)

This feature helps to ease management of control points changed by an user or graph-oriented layout.
E.g.:
1) AddRemoveControlPointAction and MoveControlPointAction could allow you to set 2. or 3. policy to a connection widget
with modified control points. Then the "user change" is not discarded and a source or a target is changed.
2) GraphLayout may render connection paths and similarly to above, it can use 2. or 3. policy on connection routed by
graph-oriented layout so the path is not discarded and overriden by connection-widget-router immediately.
Comment 1 David Kaspar 2007-08-23 10:05:47 UTC
Created attachment 47150 [details]
Patch
Comment 2 David Kaspar 2007-08-23 10:09:06 UTC
A patch has been attached. It contains:
1) ConnectionWidget.routingPolicy property and its logic is added
2) AddRemoveControlPointAction and MoveControlPointAction has additional "routingPolicy" parameter.
3) Documentation has new "Routing Policy" section.
4) "test.routing.ActionsWithRoutingPolicyTest" and "test.routing.RoutingPolicyTest" examples.
5) JavaDoc, api-changes, manifest, ...

Asking for fast-api-review.
Comment 3 David Kaspar 2007-08-31 09:26:22 UTC
The patch has been committed to the CVS.