Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Zoom failure(Zoom failure)
Zoom failure [message #545604] Thu, 08 July 2010 08:10
pipoeclipse  is currently offline pipoeclipse
Messages: 1
Registered: July 2010
Junior Member
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 Confused
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...
Valentin


Previous Topic:Integrate Form items in GEF
Next Topic:distribute freehand drawing extension for GEF
Goto Forum:
  


Current Time: Thu Apr 17 08:44:14 EDT 2014

Powered by FUDForum. Page generated in 0.01959 seconds