Skip to main content



      Home
Home » Eclipse Projects » GEF » dragging issue on Draw2D
dragging issue on Draw2D [message #249506] Tue, 07 July 2009 01:29 Go to next message
Eclipse UserFriend
I am building one GUI using draw2d API. I have also provided dragging
functionality for below components. There is one issue with drag
performance if I load more no. of such components in the window. Is there
any way I can make this drag operation smooth. Is it possible to paint
only visible area of the window ?
Please suggest. Thanking you in advance.
Re: dragging issue on Draw2D [message #249557 is a reply to message #249506] Thu, 09 July 2009 13:01 Go to previous message
Eclipse UserFriend
Hi,

The problem is definitely not painting. Dra2D paints only the visible
figures
In fact Draw2D DeferredUpdateManager ensures you only paint figures, the
bounds of which have changed.
Look at the editpolicies that create commands for you drag requests and
improve their performance. Also, you can turn off live feedback and don't
create a new command for every mouse drag/move.
Hope this helps.

Cheers,
Alex
Previous Topic:ScalableRootEditPart with draw2d
Next Topic:How to generate GEF images for project documentation
Goto Forum:
  


Current Time: Thu Mar 27 13:48:25 EDT 2025

Powered by FUDForum. Page generated in 0.03785 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top