Graphing for CE - Eclipse GEF / JavaFX

I am kind of giving up on mxGraph. It need lots of work done. Thought of using Eclipse GEF. It says I can create standalone applications using that. Then I should definitly be able to wrap it up in Intellij IDEA, right?

Have anyone tried this?

The other idea I have is, to use JavaFX. I know it not supported in lot of systems, but its okie.. Only JavaFX has a WebView. I could use JavaScript graphing through this.

Any thoughts on these ?

7 comments
Comment actions Permalink

Well sadly, Draw2d only is supported for standalone.
GEF, Zest have to be used in Eclipse alone, I guess :(

0
Comment actions Permalink

Sorry to hear! What sort of graphs are you needing to plot?

I have been searching through the forums on this topic a lot recent, and also trying out a lot of open source alternatives; But unfortunately nothing seems up to par - admittedly I have not tried GEF.
Being in a similiar scenario to yourself, other than needing to support eclipse, I have really given up on providing anything decent for CE unfortunately. I am instead currently trawling through the IJ Graph API/Diagram APIs - which are as documented as ever - and simply providing a wrapper which I can swap out later if a better solution occurs in the future

I wonder if this is a possibility for yourself also?

0
Comment actions Permalink

I am looking for complicated data management using Graphs. I got tons of xml documents that contains lots of interconnections. I need something to visualize that and edit them from the GUI. A graph is the best thing that can do this.

I am looking for something that can support CE and Eclipse. Eclipse GEF is perfect for what I am looking for, but it's coupled with Eclipse platform. I guess I will have to look into GEF and see how its done, because it's really cool and want to learn that.

But meanwhile, my hunt for JavaScript graphing framework continues.

0
Comment actions Permalink

Ah, that sounds interesting!

For Java, try checking out Gephi or JUNG if you haven't already.
For JS libraries, D3 is pretty popular, and has a lot of good examples available :)

0
Comment actions Permalink

Hey I was just going through D3. Thanks for pointing that out.

I was looking at some of the examples and roughly skimming through the documentation. Does it allow data manipulation, or just shows the graph based on the date alone? I couldn't find much examples on interacting with the graph and changing the data beneath it.

Also I need to look at the feasibility of implementing D3 inside a JavaFX webview.

Thanks :)

0
Comment actions Permalink

D3 allows you to add event handlers for `on("click", callback)` - which can execute arbitrary JS.
And, After a quick look at JavaFX - You can bind your Java API to the window object via JSObject.setMember, which will therefore allow you to call your IDE specific implementations from your d3 JS Handler.

Hopefully it shouldn't take you long to get a quick proof of concept up and running! :)

0
Comment actions Permalink

Thanks Alan!

I am just learning JavaFX. Its a really cool stuff. I have always known that there is something called JavaFX, but only now I understand how great it is. Will surely look into what you have said.

I am kind of busy with other stuff now, I have to work on this when I get free time. But will let you know if this turns out good! :)

0

Please sign in to leave a comment.