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

Summary: API: Not possible to set cursor for control points of a connection widget
Product: platform Reporter: David Kaspar <dkaspar>
Component: GraphAssignee: issues@platform <issues>
Status: RESOLVED FIXED    
Severity: blocker Keywords: API_REVIEW_FAST
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: Patch

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.