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 195433 - SatelliteView not issuing a isetValueIsAdjusting to Scrollbar Model
Summary: SatelliteView not issuing a isetValueIsAdjusting to Scrollbar Model
Status: NEW
Alias: None
Product: platform
Classification: Unclassified
Component: Graph (show other bugs)
Version: 7.0
Hardware: All Windows XP
: P4 normal (vote)
Assignee: issues@platform
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-13 23:38 UTC by bruehlicke
Modified: 2011-02-13 23:43 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bruehlicke 2011-02-13 23:38:16 UTC
Having a Scene in a ScrollPane and using a SatelliteView. Now when dragging the squared box in the satelliteview and in the same time have a AdjustmentListener on the Vertical Scrollbar will not honor the getValueIsAdjusting

For very big Scenes where you have special logic to be applied while dragging this may make it impossible to use.

I have looked at the org.netbeans.modules.visual.widget.SatelliteComponent code and when trying this code in my example modifying the mousePressed, mouseReleased and the mouseDragged code to include MyScrollPane.getVertivalScrollBare().getModel().setValueIsAdjusting(true) on the mousePressed and mouseDragged and false on the mouseReleased it works perfect !

Now, I have not found a patch which would work in general as I do not know how we could set this without knowing the encapsulating ScrollPane. So maybe the only solution is to make a private derived Class fit for purpose ?
Comment 1 bruehlicke 2011-02-13 23:43:13 UTC
In addition is the SatelliteComponent class final and hence you cannot extend it by overwriting the mouse listening methods.

That may be enough ... ? Though I guess there is a good reason for the class being final.