Hello, As I understand is, you would like to transform the complete (or what you need) Batik functions via JNI to a nother Programming Language like C++. E.g. the Batik loads the svg and you transform the DOM Tree to C++ ?
Hmmm... Is this really required ? Dou you really need all the functions in a sourrounding world ? What we do is that we have a Java Part that uses Batik. This Part ( e.g. a Java Bean) has an interface like.. loadSVG, setUri ... ShowLayer, etc.. And a second interface to transform the actions in the application to the sourounding world, like gvtTreeRendered, symbolsLoaded, error, etc... The question is how many logic would be in which part ?! We have a lot logic in the Java Part, and only view this in an applet or an other Java Application or in WinForm or in .NET or in Delphi... And there is only e.g. the RadioButtons for the different Layers.. ? Or a + , - for zoom => calls zoom(int) in the interface to the Bean or ActiveX component. So the Java part can be used without any sourrounding box... mfg Michael Kerschbaum -----Original Message----- From: Ronald Paloschi [mailto:[email protected]] Sent: Friday, December 04, 2009 11:37 AM To: [email protected] Subject: Re: complex batik use Hello Michael, thanks for your answer! Your environment is almost the same, except for .NET part (sadly, our compiler is not Microsoft, so we can't integrate .NET CLR modules in our C++ app). Anyway, if we abstract this part (lets assume you are using .NET with WPF and I will be using JNI auto-generated c++ code as a proxy to batik classes), I would really aprecciate in knowing how do you interpret batik's svg data, for example, to convert svg entyties into your .NET model. I presume you have to do that, isn't? That is excactly the same problem that I have to solve and I aprreciate your help. Thanks in advance, Ronald Kerschbaum Michael escreveu: > Hello, > > We use Batik in an *.NET Application with WPF. Ist Java with ActiveX > in an WinForm. This winForm is added to *.NET (C#, C++) Application. > I'am only responsible for the Java Batik part, because we use the > Batik also in an only Java Application. > > Let me know if your are interrestet in knowing details... Then i must > talk with same guys from our company to get details. > > > mfg > Michael Kerschbaum > > > > -----Original Message----- > From: Ronald Paloschi [mailto:[email protected]] > Sent: Thursday, December 03, 2009 5:45 PM > To: [email protected] > Subject: complex batik use > > Hi all, > > This is my first message to the mailing list. > My question is a little complex, so, let me explin it a little further: > > * In our company we have a c++ graphical application. > * We have a new feature request that is to be able to read svg files. > * A home-made c++ solution for this would take ages to complete, > just the parser would be a considerable amount of job. > * I studied batik in action for the kind of SVG that we need and it > rocks! > > So, my goal is to use batik inside my c++ application. How? What I > thought till now: > * We already have a C++ model defined (legacy, so we wont change > that). > * My main goal is to tell batik to read an SVG and provide-me with > the data so that I can manually convert it to my model. > * I`m planning to use JNI++ to glue things up. Till here everything > is OK. > > Now my questions: > * The simplest way to get the data as I realized is haveing a DOM > model of the SVG (quite low level). > * I studied the provided SVGViewer sample to see how things are > done in JSVGCanvas; > * I realized that it uses a GVTBuilder class to generate > GraphicsNode interface objects (now they are high level as I want). > * I would like to simply iterate this GraphicsNode objects and > convertt them to my structures (a small layer tying Java and C++ > worlds). > * I observed that all of this is done thinking about the screen (of > course). Even the Shapes are the AWT shapes inside the ShapeNode > objects for example. I think its acceptable since I dont care about > this objects. I have my model. > * Basically I need a list of GraphicsNode objects and a class that > provides this to me. > > I hope I could explain a little bit what are my objectives... I wanna > hear your thoughts on that... > (please abstract the JNI problem, that is a trivial problem to me... ) > > Thanks in advance, > Ronald > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: > [email protected] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: > [email protected] > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
