|Zoom failure [message #545604]
||Thu, 08 July 2010 12:10
Registered: July 2010
Hello, I start using RCP & GEF through a little draw application (rectangle/line..) with layer,thumbnail, palet, ruler and .... zoom functionality.|
I implement at some points the right code (ZoomManager, level ,contribution, zoomin/out actions in my ScalableFreeformRootEditPart) inside configureGraphicalViewer(), getAdapter() returns the getZoomManager(), all this code in my main GraphicalEditorWithFlyoutPalette and as last code in ActionbarContributor for menu & toolbar.
If the zoom level is 100% (factor=1) never change and when I draw a rectangle, ellipse it appears OK in place of my select mouse rectangle area.
If the zoom is fixed up to 200% (factor=2), my rectangle/ellipse/.. (I drag from palet) of 2x2 squares (on my grid) is drawn on 4x4 squares when I release mouse .. so the factor multiply the select mouse area by the zoom factor
I search since 2 days without any answer. I thunk zoom function was entirely integrated (as thumbnail which manages all aspects)
Any help will very appreciated...
Powered by FUDForum
. Page generated in 0.16890 seconds