Coordinates, zoom and scrollbars [message #148264] |
Fri, 20 August 2004 09:39  |
Eclipse User |
|
|
|
Hi all,
I need to draw a line as insertion point for the part to be newly created.
The position depends on the cursor location and the underlying parts.
If I do not translate the line points to absolute the line position and
size will be OK if zoom is 100% but shrinked if the zoom differs from 100%.
If I translate the line points to absolute the line will be OK for all zoom
value but will wrong if the editor's scrollbar are not in the top-left
position.
I can't have my line with the right position and size for both zoom
different from 100% AND scrollbars not on top-left position.
To draw the line I first translate the points and the create a Polyline
What am I doing wrong?
I am using Eclipse 3.0 with GEF 3.0 on Win 2000
Thanks in advance for any help
Roberto
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05045 seconds