Return-Path: Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 96760 invoked from network); 14 Sep 2000 21:07:55 -0000 Received: from corporate.planet.net (208.163.25.10) by locus.apache.org with SMTP; 14 Sep 2000 21:07:55 -0000 Received: from insage.com (prog16.planet.net [208.163.30.16]) by corporate.planet.net (8.9.3/8.8.5) with ESMTP id RAA04750 for ; Thu, 14 Sep 2000 17:07:29 -0400 (EDT) Message-ID: <39C13ED8.5B53B3F6@insage.com> Date: Thu, 14 Sep 2000 17:10:48 -0400 From: sudhi X-Mailer: Mozilla 4.72 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 To: cocoon-users@xml.apache.org Subject: Re: Graphics output using XML - Visio style References: <204640794C39D211A21700805FA735210CF0F970@ahqex1.rei.com> <003101c01d59$fed0b740$73022397@ARES> <39BFD5EE.371FCD63@insage.com> <00ce01c01dc2$8a186790$60022397@ARES> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N Hi, Thanks for the info. But what I really want is to represent my XML in graphical way... something like a site architecture (RDF). I dont know whether cocoon is the only option for it. I want look into some other technology ( i really love cocoon) which does the same thing. TIA Sudhi Nicola Ken Barozzi wrote: > > ----- Original Message ----- > From: "sudhi" > To: > Sent: Wednesday, September 13, 2000 9:30 PM > Subject: Re: Graphics output using XML - Visio style > > > Hi.. > > > > > > Nicola Ken Barozzi wrote: > > > > > > > [SNIP] > > > > > An orgchart is quite different, but there's an easy way of doing it. > > > Just write a normal Java class, like extending a canvas, with normal get and set methods, > > > and test it in an Applet. > > > > > > Can you please elaborate a more on this ? > > > Hmmm... ok. :-) > Imagine you want make a JavaBean that can display org-charts. > You probably create a class that extends Canvas and do the drawing > in the paint() method. > Then you add getter and setter methods (getChart(), setChart(), getTitle(), setTitle()...) > to tell the bean what and how to draw. > If this isn't clear enough look at the Javasoft website for tutorials. > [don't feel offended if you know all this, but I don't know you preparation :-)] > Then you want to test it, you create a new instance in an Applet and add(MyChart) > to the Applet, like in any other Java graphical component, and see the results. > Then comes the easy part ;-) > You write the Xml that describes the data the chart has to output in > graphical form, send it to me, and I will make a Transformer 4 you. :-) > [the transformer just calls the paint method of your component after > having set all the parameters and uses a special Graphics class that outputs > to SVG]. > > Ciao, > nicola_ken > > Nicola Ken Barozzi - AISA Industries S.p.A > http://www.aisaindustries.it/ > Via Leonardo da Vinci,2 Ticengo (CR) Italy > Research Activity: > Politecnico di Milano - Dipartimento di Meccanica > Piazza Leonardo da Vinci, n.32 - 20133 Milano (Italy) > > --------------------------------------------------------------------- > To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org > For additional commands, e-mail: cocoon-users-help@xml.apache.org