From: Bret C. <bre...@ya...> - 2005-06-08 19:55:28
|
Hi Andreas, I am doing somthing similar to what you want to do. The key is to understand the structure of TMNav (installation instructions for which are available at <http://www.folge2.de/topicmaps/tmnav/userdoc/en/install.html>, which allows you to use the Touchgraph renderer (or the similar Hypergraph renderer, which I am using in my application) to display an XTM file INDIRECTLY: To quote the TMNav documentation: "A Renderer never works directly with topicmap data, but always with an intermediate structure, called AbstractModel, which is supplied by a distinct Abstractor. To learn more about Abstraction and how it influences what you are going to see, check the panckoucke-documentation." <http://www.folge2.de/topicmaps/tmnav/userdoc/en/renderers.html> TMNav is built on top of TM4J and the Pankoucke library. The latter (documented at <http://www.folge2.de/topicmaps/panckoucke/userdoc/en/aboutpanckoucke.html>) supplies certain abstractors <http://www.folge2.de/topicmaps/panckoucke/userdoc/en/abstractors.html>, which can be used to add data from a topic map (loaded into memory from an XTM file using TMNav) to the AbstractModel (containing nodes and arcs). The AbstractModel can then be fed to a renderer such as Touchgraph to display these nodes and arcs in its own way. If the AbstractModels supplied by the Panckoucke library don't suite your purposes, you can write your own (as I have). The Panckoucke documentation describes how to do this <http://www.folge2.de/topicmaps/panckoucke/userdoc/en/how-to-write-an-Abstractor.html> The TMNav application, in addition to supplying all of the tools to do what you want, is a sample application (which probably does a lot MORE than you or I need to do). It lets you see XTM files displayed with many types of renderers, and includes a complex configuration structure to control all of this. My approach to this was to replace the windows and controlling class used by TMNav with my own simpler windows and controlling classs. If you would like, I could send you a copy of the monograph I wrote describing how I did this, or some of the code (It was a bit difficult - especially for me, since I'm also a beginner both at programming and at working with open-source software.) Good luck, Bret Cohen bre...@ya... > --__--__-- > > Message: 1 > Date: Tue, 7 Jun 2005 11:27:02 +0200 (MEST) > From: "Andreas Fleck" <And...@gm...> > To: tm4...@li... > Subject: [TM4J-users] XTM visualization with > Touchgraph (Help appreciated)??? > > Hi there, > > i am quite new to all of this. > I want to display my XTM files with the Touchgraph > library. > > But Touchgraph has it´s own DTD for it´s input data, > as far as i´ve > understood. So i´m not able to directly "feed" my > XTM files to the > Touchgraph API. Or can i do this? > > Can somebody please point me to a good tutorial, > website, example how to do > handle XTM files with Touchgraph and how to display > XTM files in Touchgraph? > Or maybe give me a rough idea, how this is handled > (i´ve seen lot´s of > applications where XTM files are displayed with the > Touchgraph, so there > should be a way, which most of the programmers are > going). > > I really thank you in advance for your answers. > And sorry if this question seems overly dumb. Any > information is highly > appreciated. > > Greetings > Andreas > > -- > Geschenkt: 3 Monate GMX ProMail gratis + 3 Ausgaben > stern gratis > ++ Jetzt anmelden & testen ++ > http://www.gmx.net/de/go/promail ++ > > > > --__--__-- > > _______________________________________________ > Tm4j-users mailing list > Tm4...@li... > https://lists.sourceforge.net/lists/listinfo/tm4j-users > > > End of Tm4j-users Digest > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |