Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Draw an image while dragging
Draw an image while dragging [message #182280] Mon, 23 May 2005 22:04 Go to next message
Eclipse UserFriend
Originally posted by: cleversons.gmail.com

Hi

Is it possible to draw a custom image while dragging a node on a GEF
editor?
Consider, for instance, the Shapes example. How can I provide another
image while the user drags the elipse shape?

Thanks in advance
Best Regards
Cleverson Schmidt
Re: Draw an image while dragging [message #182289 is a reply to message #182280] Mon, 23 May 2005 23:32 Go to previous messageGo to next message
Pratik Shah is currently offline Pratik ShahFriend
Messages: 1077
Registered: July 2009
Senior Member
Your selection editpolicy will be asked to show the drag feedback. In the
logic example, we draw the ghost image. Instead, you can do whatever you
please. If you're using one of our policies (such as ResizableEditPolicy),
look for showChangeBoundsFeedback().

"Cleverson Schmidt" <cleversons@gmail.com> wrote in message
news:f38ef7053384fd5ef263a663359d61d3$1@www.eclipse.org...
> Hi
>
> Is it possible to draw a custom image while dragging a node on a GEF
> editor?
> Consider, for instance, the Shapes example. How can I provide another
> image while the user drags the elipse shape?
>
> Thanks in advance
> Best Regards
> Cleverson Schmidt
>
Re: Draw an image while dragging [message #182365 is a reply to message #182289] Tue, 24 May 2005 14:09 Go to previous message
Eclipse UserFriend
Originally posted by: cleversons.gmail.com

That't exactly what I was looking for.
Thank you very much
Previous Topic:Opening menu crashes Runtime Workbench
Next Topic:Start the ruler at a particular x, y coordinates.
Goto Forum:
  


Current Time: Sat Sep 21 08:48:54 GMT 2024

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

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

Back to the top