Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Move nodes in digraph1 example
Move nodes in digraph1 example [message #243106] Fri, 23 May 2008 11:05 Go to next message
Eclipse User
Originally posted by: npchala.yahoo.com

Hi,

I found the examples digraph1 and digraph2 very usefull in understanding
the basics of GEF (URLs: http://www.eclipse.org/gef/reference/digraph1.php
and http://www.eclipse.org/gef/reference/digraph2.php)

But now i need to extend this functionality by simply allowing to move the
nodes at any location in the editor window. How can i do this?

Thanks,
Chalani
Re: Move nodes in digraph1 example [message #243110 is a reply to message #243106] Sat, 24 May 2008 01:44 Go to previous message
Eclipse User
Originally posted by: shady_86.sify.com

for that you will have to enable the draggable feature.

in your XYLayoutEditPolicy you will be having createChangeConstraintCommand method,

by using that method you can have that feature also,

check the shapes example to understand it more clearly..,
Previous Topic:drag drop from tree to editor
Next Topic:Add items in the palette at runtime
Goto Forum:
  


Current Time: Sun Aug 31 06:40:07 EDT 2014

Powered by FUDForum. Page generated in 0.32707 seconds