Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » disable nodes emerging
disable nodes emerging [message #1023472] Sun, 24 March 2013 10:16 Go to next message
Mokhtar Alshubei is currently offline Mokhtar AlshubeiFriend
Messages: 121
Registered: November 2011
Location: Germany
Senior Member
Hi,

i am using zest GridLayoutAlgo in my graph. By default when the layout is set, nodes get drawn in a gradual way like a fishman throw his net to the water...nodes emerge from the 0,0 coordinate to the preferred sizes and locations.. do you know what i mean?
Ok my question is I want to stop this so that when I update the graph it didn't disappear and then appear in this way.

Thank you!
Mok
Re: disable nodes emerging [message #1023474 is a reply to message #1023472] Sun, 24 March 2013 10:19 Go to previous messageGo to next message
Zoltan Ujhelyi is currently offline Zoltan UjhelyiFriend
Messages: 392
Registered: July 2015
Senior Member
Hi,

what you are interested in turning animations off. It was implemented for the http://wiki.eclipse.org/GEF/GEF4 version of Zest for bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=238529.

Cheers,
Zoltán

[Updated on: Sun, 24 March 2013 10:19] by Moderator

Report message to a moderator

Re: disable nodes emerging [message #1023484 is a reply to message #1023474] Sun, 24 March 2013 10:52 Go to previous messageGo to next message
Mokhtar Alshubei is currently offline Mokhtar AlshubeiFriend
Messages: 121
Registered: November 2011
Location: Germany
Senior Member
Hi,

but i am using GEF 3.8.XX and in the GEF website GEF4 is not published. In the link you gave, there is this updatesite
https://hudson.eclipse.org/hudson/job/gef4-master/lastSuccessfulBuild/artifact/update-site
should i deinstall my gef 3.8 and install the gef4? because i fear that gef4 is totally another api that will mess what i did.

Thanks,
Mok
Re: disable nodes emerging [message #1023488 is a reply to message #1023484] Sun, 24 March 2013 11:03 Go to previous messageGo to next message
Zoltan Ujhelyi is currently offline Zoltan UjhelyiFriend
Messages: 392
Registered: July 2015
Senior Member
Hi,

You can safely install GEF4 next to the GEF 3.8 API, as they are using completely different namespaces. On the other hand, this means, you have to migrate your existing Zest 1.x application to the new API - basically, bundles and packages are using the org.eclipse.gef4.zest namespace instead of the org.eclipse.zest, and you have to decrease the usepackage version numbers to 0.1.0 in the manifest.mf.

Cheers,
Zoltán
Re: disable nodes emerging [message #1023491 is a reply to message #1023484] Sun, 24 March 2013 11:14 Go to previous messageGo to next message
Mokhtar Alshubei is currently offline Mokhtar AlshubeiFriend
Messages: 121
Registered: November 2011
Location: Germany
Senior Member
Thank you! then i suppose i will turn animation off by overriding refresh and passing false to it?

Re: disable nodes emerging [message #1023494 is a reply to message #1023491] Sun, 24 March 2013 11:18 Go to previous messageGo to next message
Zoltan Ujhelyi is currently offline Zoltan UjhelyiFriend
Messages: 392
Registered: July 2015
Senior Member
Hi,

in GEF4 Zest, animations are turned off by default, and you can turn it on by setting the 'animationEnabled' property on the Graph. See the http://git.eclipse.org/c/gef/org.eclipse.gef4.git/tree/org.eclipse.gef4.zest.examples/src/org/eclipse/gef4/zest/examples/layouts/TreeLayoutExample.java example mentioned in the previously linked ticket that turns on/off animations using a checkbox.

If you are speaking about 1.x Zest, I don't know, how to turn off animations easily.

Zoltán
Re: disable nodes emerging [message #1023496 is a reply to message #1023494] Sun, 24 March 2013 11:22 Go to previous messageGo to next message
Mokhtar Alshubei is currently offline Mokhtar AlshubeiFriend
Messages: 121
Registered: November 2011
Location: Germany
Senior Member
thank you indeed for the quick replies Smile
cheers
Re: disable nodes emerging [message #1023526 is a reply to message #1023494] Sun, 24 March 2013 13:13 Go to previous messageGo to next message
Mokhtar Alshubei is currently offline Mokhtar AlshubeiFriend
Messages: 121
Registered: November 2011
Location: Germany
Senior Member
Hi, I need your help again Confused

Can you tell me how can I pass my data object to the constructor of gef4 GraphNode??

In gef 3.8, I used to create my graphNode and pass an object to the constructor of the super too. This object is the data param which i will get inside initFigure() method. But the constructor in gef4 GraphNode that I need is deprecated or invisible. I used as suggested .setData(myDataObject) but the initFigure() is called before the field is set.
Thank you
Mok
Re: disable nodes emerging [message #1023529 is a reply to message #1023526] Sun, 24 March 2013 13:18 Go to previous messageGo to next message
Zoltan Ujhelyi is currently offline Zoltan UjhelyiFriend
Messages: 392
Registered: July 2015
Senior Member
Hi,

if I understand your issue, you want to add some data to a custom figure.

To solve this, I would either have a look at the implemented UML example http://git.eclipse.org/c/gef/org.eclipse.gef4.git/tree/org.eclipse.gef4.zest.examples/src/org/eclipse/gef4/zest/examples/uml/UMLExample.java

Or I'd rather use the JFace API with a LabelProvider also implementing the IFigureProvider interface. This way, it should be easier to pair data objects with Figures.

Cheers,
Zoltán
Re: disable nodes emerging [message #1023547 is a reply to message #1023529] Sun, 24 March 2013 14:19 Go to previous message
Mokhtar Alshubei is currently offline Mokhtar AlshubeiFriend
Messages: 121
Registered: November 2011
Location: Germany
Senior Member
Excellent Zoltán thank you! I just now pass the figure i want instead of passing an object and do that inside the graphnode.

cheers Smile
Previous Topic:draw2d Label resize
Next Topic:customized border or little fig
Goto Forum:
  


Current Time: Fri Apr 19 10:10:07 GMT 2024

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

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

Back to the top