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 104662 - API: Not possible to set cursor for control points of a connection widget
Summary: API: Not possible to set cursor for control points of a connection widget
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:
 
Reported: 2007-05-23 21:44 UTC by David Kaspar
Modified: 2007-06-05 09:49 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Patch (15.48 KB, patch)
2007-05-28 15:38 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-05-23 21:44:38 UTC
Currently a cursor could be set only per a Widget. It is not enough for control
points since they are rendered by a connection widget itself.

The issue requires to add an ability to dynamically resolve a cursor by a Widget
using mouse-location too. This could be implemented by adding:
protected Widget.getCursor (Point localLocation) {
    return getCursor ();
}

In ConnectionWidget class the method has to be overriden to track the control
points and return particular cursor.
Comment 1 David Kaspar 2007-05-28 15:36:12 UTC
The Widget.getCursorAt protected method is added. Also the
ConnectionWidget.controlPointsCursor property is added and used in
ConnectionWidget.getCursorAt method impl.
test.controlpoints.ControlPointsCursorTest example added.
Comment 2 David Kaspar 2007-05-28 15:38:05 UTC
Created attachment 42860 [details]
Patch
Comment 3 David Kaspar 2007-06-05 09:49:28 UTC
Fixed in main trunk. Version 2.3.