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 233296

Summary: Patch for: InputBindings should support selection of mouse button for PanAction
Product: platform Reporter: František Mantlík <mantlik>
Component: GraphAssignee: Jaroslav Havlin <jhavlin>
Severity: normal CC: anebuzelsky, apireviews, jkovalsky, markiewb
Priority: P3 Keywords: API_REVIEW_FAST, NETFIX
Version: 7.4   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:
Attachments: Proposed changes in the Visual API module
Proposed changes in the Visual API module (corrected)

Description František Mantlík 2013-07-24 09:30:38 UTC
Proposed patch provides support for selection of mouse button used in PanAction in Visual Library API. The proposed implementation provides default MouseEvent.BUTTON2, i.e. mouse wheel, which is compatible with current feature.

Usage example:


The above peace of code creates an action to pan scene inside a scroll pane with left mouse button pressed instead of the default, i.e. mouse wheel pressed.

Use case:
Many GIS and similar applications (at least for Windows) use left mouse button for pan action. Proposed change provides simple means for creation of applications with similar user experience without a need of rewriting the pan action.
Comment 1 František Mantlík 2013-07-24 09:37:37 UTC
Created attachment 137677 [details]
Proposed changes in the Visual API module
Comment 2 František Mantlík 2013-07-24 09:42:30 UTC
Created attachment 137678 [details]
Proposed changes in the Visual API module (corrected)
Comment 3 Jaroslav Havlin 2013-08-13 14:43:49 UTC
The patch looks fine to me. Thank you very much for providing it.

If there are no objections, I'll integrate it tomorrow.
Comment 4 Jaroslav Havlin 2013-08-14 13:55:40 UTC
Integrated as
Thank you for reviewing.