From: Frederik S. <fre...@au...> - 2013-05-14 01:50:48
|
Hi Emmanuel, Thanks for your reply. I thought about using the Applet but was unable to find a way to load the graph from a dot file. Is this possible or do I need to provide the graph data in a different format? I also made a few changes to AJaPaD sources , which were in my opinion bugs. Let me know if you want to have the sources? Cheers Frederik -----Original Message----- From: Emmanuel Pietriga [mailto:emm...@in...] Sent: Tuesday, 14 May 2013 12:54 a.m. To: zvt...@li... Subject: Re: [zvtm-devel] Integrate ZGRView in Swing Application Hi Frederik, There is no quicky way to integrate it. At this point you have to make small modifications to the source code. One easy way to do this is to start from the applet version of ZGRViewer (thought some functionality is missing in this version, such as saving files and printing). If you just want a JPanel that will let you visualize a graph, without all the fancy bells and whistles, this is probably the easiest way to go. cheers, Emmanuel -- Emmanuel Pietriga INRIA & INRIA Chile http://pages.saclay.inria.fr/emmanuel.pietriga On 2 mai 2013, at 22:53, Frederik Schmidt <fre...@au...> wrote: > Hi, > I would like to add the ZGRView on a JPanel. To achieve this I made some minor changes to the ZGRViewer interface. The solution below works ok. Apart from that it also creates an additional ZGRViewer window without the View. I guess this cannot be the optimal solution, so I am wondering if there is a better way to integrate the ZGRView in my Swing application? > > _zgrViewer = new ZGRViewer(false, new > File(configuration.getTempDotFileName())); > GraphicsManager graphicsManager = _zgrViewer.getGraphicsManager(); > View view = graphicsManager.getView(); > JPanel zgrViewPanel = (JPanel) > view.getPanel().getComponent(); > > Cheers > Frederik > ---------------------------------------------------------------------- > -------- Get 100% visibility into Java/.NET code with AppDynamics Lite > It's a free troubleshooting tool designed for production Get down to > code-level detail for bottlenecks, with <2% overhead. > Download for free and get started troubleshooting in minutes. > http://p.sf.net/sfu/appdyn_d2d_ap2____________________________________ > ___________ > zvtm-devel mailing list > zvt...@li... > https://lists.sourceforge.net/lists/listinfo/zvtm-devel ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. This 200-page book is written by three acclaimed leaders in the field. The early access version is available now. Download your free book today! http://p.sf.net/sfu/neotech_d2d_may _______________________________________________ zvtm-devel mailing list zvt...@li... https://lists.sourceforge.net/lists/listinfo/zvtm-devel |