From: Emmanuel P. <emm...@in...> - 2013-05-14 13:24:37
|
On 13 mai 2013, at 21:50, Frederik Schmidt <fre...@au...> wrote: > 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 was more thinking about taking inspiration from the ZGRApplet class to modify ZGRViewer's way to instantiate the view, but sticking to the latter as it does provide much more features than the applet version indeed. In theory it should really be just a question of instantiating a PView (PanelView) instead of an EView (FrameView) (see corresponding methods in fr.inria.zvtm.engine.VirtualSpaceManager), and ZGRApplet gives you an example of how to instantiate and embed such a PView into a Swing component hierarchy. > 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? Sure. Please send them to me (along with short explanations of what problems they address if possible). thanks, Emmanuel > > 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 > > ------------------------------------------------------------------------------ > AlienVault Unified Security Management (USM) platform delivers complete > security visibility with the essential security capabilities. Easily and > efficiently configure, manage, and operate all of your security controls > from a single console and one unified framework. Download a free trial. > http://p.sf.net/sfu/alienvault_d2d > _______________________________________________ > zvtm-devel mailing list > zvt...@li... > https://lists.sourceforge.net/lists/listinfo/zvtm-devel -- Emmanuel Pietriga INRIA & INRIA Chile http://pages.saclay.inria.fr/emmanuel.pietriga |