Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 153414

Summary: GraphicalEditor does not allow to scroll canvas with figures staying still
Product: [Tools] GEF Reporter: Pawel Garbacz <pawel.garbacz>
Component: GEF-Legacy Draw2dAssignee: gef-inbox <gef-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: nyssen
Version: 3.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Pawel Garbacz CLA 2006-08-10 05:29:38 EDT
I recently tried to make some figures still. I mean their position is relative to the current viewport not to the whole virtual area. I updated the bounds of these figures when the viewport location/size changed. When I set programatically the new view location the figures look like they were not moving even if the whole virtual area was really moved. But when I do the scroll using scrollbars by clicking or dragging scrollbar thumb the scroll of the FigureCanvas occured causing moving part of the rendered image to another location and refreshing the rest of the area. After that the update of figures bounds took place but it was not in the same call stack the scroll was: a new async redraw event occurred.

What I would suggest in this case is to enable the GraphicalViewer to scroll the area without moving such figures by redrawing the control synchronously or introduce a layer that would not affect the scroll events.
Comment 1 Alexander Nyßen CLA 2011-03-09 17:50:45 EST
Clients may introduce new layers by exchanging the root edit part to achieve what you describe. I do not think the framework has to provide any special support for this. Resolving as wontfix though.