| Summary: | SnapToGeometry.THRESHOLD should be retrieved via accessor method | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Tools] GEF | Reporter: | Chris Lee <eclipse> | ||||||
| Component: | GEF-Legacy GEF (MVC) | Assignee: | Anthony Hunter <ahunter.eclipse> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | nyssen | ||||||
| Version: | 3.1 | ||||||||
| Target Milestone: | 3.4.0 (Ganymede) M1 | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows XP | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Chris Lee
Could you submit a patch against the latest code in HEAD? Sure; I'll get that done later this week. Created attachment 31761 [details]
add protected double getThreshold ()
added & hooked up getThreshold() method
Hey guys; any word on when we'll be able to use this? An alternative to this patch would be to make THRESHOLD non-final; the issue is that we need to set a custom threshold. This has become an issue, as we need to set a custom threshold. The main place where we need to use this has a zoom UI multiplier of 15 set, making the THRESHOLD of 5 very useless - we would need to change the THRESHOLD to 75 to get the same effect. Currently, we have a copy-paste of SnapToGeometry with the patch implemented on it, however, I've been advised that we can't actually use that version for shipping our product. Is there anything blocking this patch from being accepted? I wonder why the threshold is not determined in absolute coordinates rather than relative? Do you not also want a setThreshold method so you wouldn't have to subclass? Created attachment 56006 [details] added getThreshold / setThreshold created patch with getThreshold/setThreshold based on current HEAD version. In response to comment #6 - the threshold being in relative coordinates seems alright to me - I would like it to scale as I zoom. The main issue is that it doesn't account for different UI multipliers (or those who want to change the threshold from the default to be some other customized number) Committed to HEAD. Note that I made both methods protected as requested (and not what was in the patch). |