Skip to main content



      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 UserFriend
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 UserFriend
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: Fri Apr 25 23:49:51 EDT 2025

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

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

Back to the top