Skip to main content



      Home
Home » Eclipse Projects » GEF » ZEST: Disable manual movement of some, but not all nodes in a graph?
ZEST: Disable manual movement of some, but not all nodes in a graph? [message #780508] Wed, 18 January 2012 06:21 Go to next message
Eclipse UserFriend
The below example (from vogella.de) explains how manual node movement can be disabled for a graph. Is this also possible for just a set of nodes, e.g., by extending GraphNode? And how could this work?

Many thanks!

public class NonMovableGraph extends Graph {

	public NonMovableGraph(Composite parent, int style) {
		super(parent, style);
		this.getLightweightSystem().setEventDispatcher(
				new SWTEventDispatcher() {
					public void dispatchMouseMoved(
							org.eclipse.swt.events.MouseEvent me) {
						// Doing nothing
					}
				});
	}

}
Re: ZEST: Disable manual movement of some, but not all nodes in a graph? [message #793590 is a reply to message #780508] Wed, 08 February 2012 05:15 Go to previous message
Eclipse UserFriend
I still haven't found out whether this is possible. Could anybody help?
Previous Topic:SelectionListener for GraphicalEditor
Next Topic:ZEST: Transparent nodes?
Goto Forum:
  


Current Time: Wed Jul 16 07:19:56 EDT 2025

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

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

Back to the top