| BendpointEditPolicy - incorrect location after zooming [message #222282] |
Tue, 29 August 2006 09:05  |
Martin Tanler Messages: 1 Registered: July 2009 |
Junior Member |
|
|
Hello,
I am currently developing a view using GEF. My problem is the following:
after zooming in
or zooming out I try to create/move a bendpoint of a connection. However
the location of
the (new) bendoint location is incorrect if I have zoomed in or zoomed
out. (zoom level 0.5: the bendpoint gets moved half the way it
should be).
Thanks in advance for your help,
Martin
|
|
|
|
|
|
| Re: BendpointEditPolicy - incorrect location after zooming [message #1012447 is a reply to message #1012382] |
Thu, 21 February 2013 10:18   |
Jan Krakora Messages: 402 Registered: December 2009 Location: Prague |
Senior Member |
|
|
Looking at the Bendpoint interface, there is written "A bendpoint returns a point relative to the connection figure on which it is being used."
The getLocation() method of the BendpointRequest returns always absolute coordinates. Absolute means relative to the canvas.
So Calling connection.translateToRelative(location) should change the location according to the actual zoom, scroll or whatever.
Coordinate transformation is dark space for me too. take a look at this http://www.eclipsezone.com/eclipse/forums/t46584.html
By the way, I don't think the bug you filed is actually a bug. The returned location is just in absolute coordinates.
[Updated on: Thu, 21 February 2013 10:20] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.16825 seconds