Login | Register
My pages Projects Community openCollabNet

Discussions > dev > [gef-dev] Scaling problems

gef
Discussion topic

Back to topic list

[gef-dev] Scaling problems

Reply

Author Bob Tarling <bob dot tarling at ntlworld dot com>
Full name Bob Tarling <bob dot tarling at ntlworld dot com>
Date 2004-01-29 18:06:21 PST
Message I have to confess I'm getting beaten by issue 60 http://gef.tigris.or​g/issues/show_bug.cg​i?id=60

If anyone can spot anything I'm missing then let me know.

I think part of the problem lies with the methods on Editor of translateMouseEvent and retranslateMouseEvent. These are called by various modes, which means that no other mode can be sure if the mouse event it is passed has already been scaled or not.

I'd suggest these methods should return a new copy of a MouseEvent rather than amending its input, that's a nasty side effect.

Better still we could subclass MouseEvent to contain both scaled and unscaled co-ordinates and pass this specialist MouseEvent around instead.

In the meantime though I'd like to find a workaround for the current problem. This is around the mouseDragged method of ModeSelect, I've done some refactoring so I can see what's going on a bit more clearly but I've had no luck so far in solving this.

Those using ArgoUML can easily reproduce the bug with that, just zoom in or out and then draw a selection rectangle. I'll but a demo into BasicApplication also.

Bob.
Attachments

« Previous message in topic | 1 of 10 | Next message in topic »

Messages

Show all messages in topic

[gef-dev] Scaling problems Bob Tarling <bob dot tarling at ntlworld dot com> Bob Tarling <bob dot tarling at ntlworld dot com> 2004-01-29 18:06:21 PST
     RE: [gef-dev] Scaling problems "Christensen, Blake" <Blake dot Christensen at dsionline dot com> "Christensen, Blake" <Blake dot Christensen at dsionline dot com> 2004-01-30 09:01:41 PST
         Re: RE: [gef-dev] Scaling problems bob dot tarling at ntlworld dot com bob dot tarling at ntlworld dot com 2004-01-30 09:19:48 PST
             Re: RE: [gef-dev] Scaling problems bob dot tarling at ntlworld dot com bob dot tarling at ntlworld dot com 2004-01-30 09:23:18 PST
                 Re: RE: [gef-dev] Scaling problems anoncvs anonymous CVS access 2004-01-30 10:02:11 PST
                     [gef-dev] UI/Model split (was Scaling problems) Bob Tarling <bob dot tarling at ntlworld dot com> Bob Tarling <bob dot tarling at ntlworld dot com> 2004-01-30 11:31:17 PST
                         RE: RE: [gef-dev] Scaling problems "Christensen, Blake" <Blake dot Christensen at dsionline dot com> "Christensen, Blake" <Blake dot Christensen at dsionline dot com> 2004-01-30 11:46:28 PST
                             Re: RE: [gef-dev] Scaling problems Bob Tarling <bob dot tarling at ntlworld dot com> Bob Tarling <bob dot tarling at ntlworld dot com> 2004-01-30 11:47:42 PST
                                 Re: RE: [gef-dev] Scaling problems Bob Tarling <bob dot tarling at ntlworld dot com> Bob Tarling <bob dot tarling at ntlworld dot com> 2004-01-30 12:09:41 PST
                         Re: [gef-dev] UI/Model split (was Scaling problems) anoncvs anonymous CVS access 2004-01-30 12:22:52 PST
Messages per page: