Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 11:21 Go to next message
Stephan Druskat is currently offline Stephan DruskatFriend
Messages: 104
Registered: October 2011
Location: Berlin, Germany
Senior Member

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 10:15 Go to previous message
Stephan Druskat is currently offline Stephan DruskatFriend
Messages: 104
Registered: October 2011
Location: Berlin, Germany
Senior Member

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: Thu Apr 25 20:48:07 GMT 2024

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

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

Back to the top