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: 59
Registered: October 2011
Location: Berlin, Germany
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: 59
Registered: October 2011
Location: Berlin, Germany
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: Fri Nov 28 07:23:24 GMT 2014

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

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