How to select nearest figure when clicking on parent [message #185711] |
Tue, 28 June 2005 23:32  |
Eclipse User |
|
|
|
I've created a root edit part that displays an image, and it has children
whose figures are just single red pixels that highlight certain features
in the root image.
Because they're only single pixels, it is difficult for the user to select
them. I'd like to implement a selection approach, where the user can
click on any point in the root figure, and the *nearest* child will be
selected. I'm not sure how to go about this - pointers appreciated.
Thanks,
Jason.
|
|
|
|
Re: How to select nearest figure when clicking on parent [message #185787 is a reply to message #185755] |
Thu, 30 June 2005 00:30  |
Eclipse User |
|
|
|
That's exactly what I did whilst awaiting responses! I also implemented
cross-hairs that appear on the feedback layer when the mouse moves/hovers
over the figure. The cross-hairs are animated for extra pizazz (used
GEF's SnapFeedbackPolicy.FadeIn figure for inspiration). This gives the
user a cue about which pixel will be selected should they click the mouse.
You're right; when the dots are close, it is still hard to select an 'in
between' pixel, however that would still be the case even if I used the
approach from my original query.
I'm going to settle on your approach for now, but I may try to provide an
alternative selection feedback, because the black box with anchors looks
awful when the figures are tiny.
Tips for doing the latter would be appreciated.
|
|
|
Powered by
FUDForum. Page generated in 0.03638 seconds