Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Put Figures/Nodes in a fixed location in the canvas when opening the Editor?(Set the layout of figures in the canvas)
Put Figures/Nodes in a fixed location in the canvas when opening the Editor? [message #835931] Tue, 03 April 2012 21:34 Go to next message
Che Bumagat is currently offline Che BumagatFriend
Messages: 41
Registered: February 2012
Member
Hello GMF Experts!

How do you automatically put the Nodes or Figures to a certain position/location in the canvas when opening the editor?

Is there any example or reference out there on how to do it?

As always, appreciate the help you guys provide! Smile

Thanks!
Che
Re: Put Figures/Nodes in a fixed location in the canvas when opening the Editor? [message #836245 is a reply to message #835931] Wed, 04 April 2012 09:10 Go to previous message
Ralph Gerbig is currently offline Ralph GerbigFriend
Messages: 702
Registered: November 2009
Senior Member
Hi,

try to use the notational model.

Bounds b = NotationFactory.eINSTANCE.createBounds();
b.setX(x);
b.setY(y);
middleNode.setLayoutConstraint(b);


Ralph
Previous Topic:copying / Cloning a Diagram object
Next Topic:Two different "Languages" in one editor
Goto Forum:
  


Current Time: Sun Oct 25 03:23:03 GMT 2020

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

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

Back to the top